Fixed DHCP paths as per bug #704
authorMati Aharoni (Kali Linux Developer) <muts@kali.org>
Tue, 19 Nov 2013 16:31:08 +0000 (11:31 -0500)
committerMati Aharoni (Kali Linux Developer) <muts@kali.org>
Tue, 19 Nov 2013 16:31:08 +0000 (11:31 -0500)
debian/changelog
debian/patches/fix-paths [new file with mode: 0644]
debian/patches/series

index 8a9d9f7..b37981a 100644 (file)
@@ -1,3 +1,9 @@
+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
 
   * Upstream import of 2.0.4
diff --git a/debian/patches/fix-paths b/debian/patches/fix-paths
new file mode 100644 (file)
index 0000000..609b3ba
--- /dev/null
@@ -0,0 +1,49 @@
+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;\r
++ddns-update-style interim;\r
+ default-lease-time 600;\r
+ max-lease-time 7200;\r
+ authoritative;\r
+@@ -8,4 +8,4 @@
+ option routers 10.0.0.254;\r
+ option domain-name-servers 8.8.8.8;\r
+ range 10.0.0.1 10.0.0.140;\r
+-}
+\ No newline at end of file
++}\r
+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()
index 9b4d62d..8889f56 100644 (file)
@@ -1 +1,2 @@
+fix-paths
 add-sys-path-append