Created
June 25, 2015 20:20
-
-
Save KyxRecon/5872aea4f2c6f704a481 to your computer and use it in GitHub Desktop.
Ip-checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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