Jump to content

ghoulmaster

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by ghoulmaster

  1. dude u just made me laugh, is it ok if i add that (the "silly me.. assuming something isn't on the internet") to like everything???
  2. ok so i just saw this weeks hak5 and i saw how darren went threw dyndns because he had a static ip and i HATE signing up for those then downloading the app to keep my ip in sync with the dns that i registered. So i was already experimenting what i could get dropbox to do from a previous hak5 episode about watching your computer using dropbox. so i created these two scripts so i always have my external ip wherever i go. if you put this script in your dropbox folder and run it from there it will write your ip to ip.txt (it will rewrite it everytime and create it if not there) #!/usr/bin/python import urllib import time #Coder: ghoulmaster while 1: ip = urllib.urlopen("http://www.whatismyip.com/automation/n09230945.asp").read() file = open('ip.txt', 'w') file.write(ip) file.close time.wait(2400) now this one is much more useful if you dont have dropbox say on the machine your working on or your mobile phone. this script texts you your ip. #!/usr/bin/python import urllib import smtplib import time #Coder: ghoulmaster #Note: DO NOT DELETE THE ' MARKS THE PROGRAM WILL NOT WORK!! Also i made this script modified for SPEED (to the best of my #current abilites) so if you join another network then this script will fail or if you get kicked offline you will need to #reconnect then re-run this script ip = urllib.urlopen("http://www.whatismyip.com/automation/n09230945.asp").read() gmail_User = '<Gmail Username here (no @gmail)>' gmail_Pass = '<Gmail Password here>' gmail_User2 = gmail_User + '@gmail' Phone_Number = '<Phone number here with @vtext.com or whatever your carrier is>' Send = smtplib.SMTP("smtp.gmail.com:587") Send.starttls() Send.login(gmail_User, gmail_Pass) while 1: ip = urllib.urlopen("http://www.whatismyip.com/automation/n09230945.asp").read() msg = """\ From: %s To: %s Subject: External IP %s """ % (gmail_User2, Phone_Number, ip) Send.sendmail(gmail_User2, Phone_Number, msg) time.time(2400) if anyone has any question just ask here
×
×
  • Create New...