Jump to content

Have A Static Ip And Dont Like To Sign Up For Dns's? No Problem!


ghoulmaster
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • 4 weeks later...

Buy an ADSL modem that supports Dynamic DNS, that way you don't have to worry about install any DynDNs application on your computer.

It's all done at the modem level for you.

Edited by Infiltrator
Link to comment
Share on other sites

  • 2 weeks later...
Most routers do, If it doesn't honestly what is the big deal using their client to keep your stuff working? Stop Whining lol.

Well the more crap your install on the computer, the more it becomes vulnerable.

And more time you have to spend on patching up or updating software.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...