import http.client,json,time
def get(q):
 try:
  c=http.client.HTTPConnection('10.0.0.7',8088,timeout=6)
  c.request('GET','/ums/api/automation'+q,headers={'Host':'gitee.com','User-Agent':'Mozilla/5.0'})
  r=c.getresponse();d=r.read(800);c.close();return r.status,d.decode('utf-8','replace')
 except Exception as e:return 0,type(e).__name__
seen=set()
for q in ['?action_webhook_id=1&automation_log_id=1&operator_user_id=1','?automation_log_id=1&operator_user_id=1','?action_webhook_id=1&operator_user_id=1','?action_webhook_id=1&automation_log_id=1']:
 s,d=get(q);print('Q',q,s,d[:300])
for k in ['automation_log_id','action_webhook_id']:
 for i in range(1,61):
  s,d=get('?%s=%d'%(k,i))
  if '参数有误' not in d:
   print('HIT',k,i,s,d[:300])
print('done')
