『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 14900|回复: 14

[流程系列] 工作日自动打卡流程

[复制链接]

11

主题

121

帖子

840

积分

论坛技术达人

积分
840
金钱
709
HASS币
60
发表于 2019-4-17 18:29:44 | 显示全部楼层 |阅读模式
本帖最后由 yinzhennan 于 2019-4-17 18:36 编辑

69BABE69-C0E1-44C3-BA3D-49DA5689B6B3.png
[{"id":"1229c1de.9ed23e","type":"http request","z":"4c7e7d2d.2c59d4","name":"打卡","method":"POST","ret":"txt","paytoqs":false,"url":"https://破解了我司的考勤服务","tls":"","proxy":"","authType":"basic","x":790,"y":560,"wires":[["b312df8e.e1f67"]]},{"id":"5afc3f23.727b1","type":"inject","z":"4c7e7d2d.2c59d4","name":"上班时间","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"50 08 * * *","once":false,"onceDelay":0.1,"x":110,"y":540,"wires":[["256b2170.4ba16e"]]},{"id":"2c869723.ccb428","type":"delay","z":"4c7e7d2d.2c59d4","name":"随机10分钟","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"10","randomUnits":"minutes","drop":false,"x":650,"y":560,"wires":[["1229c1de.9ed23e"]]},{"id":"b312df8e.e1f67","type":"api-call-service","z":"4c7e7d2d.2c59d4","name":"通知我","server":"42856857.1cb6d8","service_domain":"notify","service":"ios_zhennan_iphone","data":"{"message":"上班打卡"}","mergecontext":"","output_location":"","output_location_type":"none","x":910,"y":560,"wires":[[]]},{"id":"256b2170.4ba16e","type":"http request","z":"4c7e7d2d.2c59d4","name":"节假日","method":"GET","ret":"txt","paytoqs":false,"url":"http://timor.tech/api/holiday/info","tls":"","proxy":"","authType":"basic","x":250,"y":560,"wires":[["a6b633b1.69439"]]},{"id":"a6b633b1.69439","type":"function","z":"4c7e7d2d.2c59d4","name":"是否上班","func":"var holidayData = JSON.parse(msg.payload);\nvar week = new Date().getDay();\nvar weekEnd = (week == 6 || week == 0);\nvar work = 1;\nif(weekEnd && !holidayData.holiday){\n    work = 0;\n}else if(!weekEnd && holidayData.holiday){\n    work = 0;\n}\nmsg.payload = work;\nreturn msg;","outputs":1,"noerr":0,"x":380,"y":560,"wires":[["ddb87c1f.9c5bc"]]},{"id":"ddb87c1f.9c5bc","type":"switch","z":"4c7e7d2d.2c59d4","name":"上班","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":560,"wires":[["2c869723.ccb428"]]},{"id":"6af9e9d3.6e8598","type":"inject","z":"4c7e7d2d.2c59d4","name":"下班时间","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"30 18 * * *","once":false,"onceDelay":0.1,"x":110,"y":580,"wires":[["256b2170.4ba16e"]]},{"id":"42856857.1cb6d8","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false}]

回复

使用道具 举报

27

主题

2143

帖子

8926

积分

论坛元老

Rank: 8Rank: 8

积分
8926
金钱
6778
HASS币
30

论坛元老

发表于 2019-4-17 19:08:40 | 显示全部楼层
本帖最后由 情非殇 于 2019-4-17 19:11 编辑

打卡也能远程么,重点是怎么破解考勤系统吧
回复

使用道具 举报

8

主题

736

帖子

4564

积分

论坛元老

Rank: 8Rank: 8

积分
4564
金钱
3823
HASS币
40
QQ
发表于 2019-4-17 22:44:46 | 显示全部楼层
厉害了老哥
回复

使用道具 举报

22

主题

303

帖子

1071

积分

金牌会员

Rank: 6Rank: 6

积分
1071
金钱
763
HASS币
20
发表于 2019-4-17 23:18:47 | 显示全部楼层
感觉HASS的应用无所不能,无所不在了,向大神学习
回复

使用道具 举报

8

主题

2073

帖子

6053

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
6053
金钱
3980
HASS币
145

灌水之王

发表于 2019-4-18 08:17:42 | 显示全部楼层
节假日准不准啊 小心大家放假你打卡就尴尬了
回复

使用道具 举报

11

主题

121

帖子

840

积分

论坛技术达人

积分
840
金钱
709
HASS币
60
 楼主| 发表于 2019-4-18 09:26:29 | 显示全部楼层
情非殇 发表于 2019-4-17 19:08
打卡也能远程么,重点是怎么破解考勤系统吧

我抓包了,发现基本没有什么加密和反作弊措施,限制都是在前端做的. 还从公司的git上下载了源码确认没有陷阱之类的
回复

使用道具 举报

11

主题

121

帖子

840

积分

论坛技术达人

积分
840
金钱
709
HASS币
60
 楼主| 发表于 2019-4-18 09:29:37 | 显示全部楼层
xieahui 发表于 2019-4-18 08:17
节假日准不准啊 小心大家放假你打卡就尴尬了

就说控制不住满腔的工作热情,来公司免费加班了
回复

使用道具 举报

25

主题

416

帖子

3027

积分

元老级技术达人

积分
3027
金钱
2601
HASS币
40
发表于 2019-4-18 09:58:03 | 显示全部楼层
lz啥打卡 钉钉么?
回复

使用道具 举报

1

主题

28

帖子

100

积分

注册会员

Rank: 2

积分
100
金钱
72
HASS币
0
发表于 2019-4-18 10:05:38 | 显示全部楼层
怎么才能抓到考勤机的包呢,得在交换机上做端口镜像,还是arp欺骗?
回复

使用道具 举报

6

主题

743

帖子

5952

积分

论坛元老

Rank: 8Rank: 8

积分
5952
金钱
5204
HASS币
20
发表于 2019-4-18 11:28:00 | 显示全部楼层
这作弊作的流弊。好在我们上课手工签名不打卡,用不上。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-21 22:30 , Processed in 0.766303 second(s), 36 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表