Commit 4339d4da authored by Mati's avatar Mati

Fixed DHCP paths as per bug #704

parent 23d64c14
websploit (2.0.4-1kali1) kali; urgency=low
* Fixed DHCP paths as per bug #704
-- Mati Aharoni <muts@kali.org> Tue, 19 Nov 2013 11:30:23 -0500
websploit (2.0.4-1kali0) kali; urgency=low websploit (2.0.4-1kali0) kali; urgency=low
* Upstream import of 2.0.4 * Upstream import of 2.0.4
......
Index: websploit/modules/fakeap/dhcpd.conf
===================================================================
--- websploit.orig/modules/fakeap/dhcpd.conf 2013-11-19 11:21:02.191040774 -0500
+++ websploit/modules/fakeap/dhcpd.conf 2013-11-19 11:28:27.448516845 -0500
@@ -1,4 +1,4 @@
-ddns-update-style ad-hoc;
+ddns-update-style interim;
default-lease-time 600;
max-lease-time 7200;
authoritative;
@@ -8,4 +8,4 @@
option routers 10.0.0.254;
option domain-name-servers 8.8.8.8;
range 10.0.0.1 10.0.0.140;
-}
\ No newline at end of file
+}
Index: websploit/modules/fakeap/fake_ap.py
===================================================================
--- websploit.orig/modules/fakeap/fake_ap.py 2013-11-19 11:21:02.191040774 -0500
+++ websploit/modules/fakeap/fake_ap.py 2013-11-19 11:27:32.800517278 -0500
@@ -11,7 +11,7 @@
options = ["wlan0", "FakeAP", "11"]
def fake_sts():
print(wcolors.color.RED + "[!]Notice : You Should Be Installed DHCP Before Run This Attack, If DHCP Not Installed Run This Command in Terminal :")
- print("sudo apt-get install dhcp3-server" + wcolors.color.ENDC)
+ print("apt-get install isc-dhcp-server" + wcolors.color.ENDC)
fake_ap()
def fake_ap():
try:
@@ -68,14 +68,14 @@
os.system("xterm -e iptables -P FORWARD ACCEPT &")
sleep(2)
os.system("xterm -e iptables -t nat -A POSTROUTING -o eth3 -j MASQUERADE &")
- print(wcolors.color.BLUE + "[*]Clearing HDCP Leases ..." + wcolors.color.ENDC)
- os.system("xterm -e echo > /var/lib/dhcp3/dhcpd.leases &")
- os.system("xterm -e ln -s /var/run/dhcp3-server/dhcpd.pid /var/run/dhcpd.pid &")
+ print(wcolors.color.BLUE + "[*]Clearing DHCP Leases ..." + wcolors.color.ENDC)
+ os.system("xterm -e echo > /var/lib/dhcp/dhcpd.leases &")
+ os.system("xterm -e ln -s /var/run/dhcp/dhcpd.pid /var/run/dhcpd.pid &")
print(wcolors.color.BLUE + "[*]Enable IP Forwarding ..." + wcolors.color.ENDC)
os.system("xterm -e echo 1 > /proc/sys/net/ipv4/ip_forward &")
sleep(2)
print(wcolors.color.BLUE + "[*]Starting DHCP Server ..." + wcolors.color.ENDC)
- os.system("xterm -e dhcpd3 -d -f -cf /modules/fakeap/dhcpd.conf at0 &")
+ os.system("xterm -e dhcpd -d -f -cf /modules/fakeap/dhcpd.conf at0 &")
print(wcolors.color.GREEN + "[*]Create Fake Access Point Successful ..." + wcolors.color.ENDC)
print(wcolors.color.RED + "NOTICE : When You Have Finished Attack, Press [enter] Key For Clean Up" + wcolors.color.YELLOW + " [Important]" + wcolors.color.ENDC)
enter_key = raw_input()
fix-paths
add-sys-path-append add-sys-path-append
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment