Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SiloGit/030b0eb4861e5bae841cfaf730827510 to your computer and use it in GitHub Desktop.
Save SiloGit/030b0eb4861e5bae841cfaf730827510 to your computer and use it in GitHub Desktop.
Ip-checker
"""
Name : Ip Checker
Created By : Lucifer
"""
import subprocess
print '\n\tLookup domain IP - By : Lucifer \n'
print """
_____ _ _
|_ _| | | | |
| | _ __ ___| |__ ___ ___| | _____ _ __
| | | '_ \ / __| '_ \ / _ \/ __| |/ / _ \ '__|
_| |_| |_) | | (__| | | | __/ (__| < __/ |
|_____| .__/ \___|_| |_|\___|\___|_|\_\___|_|
| |
|_|
"""
def looking():
while True:
try:
inp = raw_input(" [+] Enter Domain Name: ")
out = open('domain.txt', 'w')
subprocess.call(['ping', '-c 1', inp], stdout = out)
out.close()
data = open('domain.txt', 'r')
op = data.readline()
pisah = op.split()
print " [+] Ip domain is :",pisah[2].replace('(','').replace(')',''), "\n"
except KeyboardInterrupt:
print "\n\tThank you.."
break
looking()
'''
import os
command = os.system('ping 127.0.0.1 >> new.txt')
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment