Forum Replies Created
- AuthorPosts
- Atul KoshtaParticipant
Hello Zaid sir,
I just want to tell you that I moved a step ahead and I wish I could solve rest of my problem myself. I will get back to you if I face any further obstacle.
Thanks a lot for your assistance.Atul KoshtaParticipantHi Zaid sir,
I am glad to tell you that it worked after n number of tries.
Thanks a lot for your support.Atul KoshtaParticipantThere happened some error, sir, I apologize for that error. Here is the result of ifconfig when I plugged in the adapter after starting the machine:
root@kali:~# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 08:00:27:59:1b:51 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 16 bytes 960 (960.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16 bytes 960 (960.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:c0:ca:96:64:e9 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0#after this I followed the same procedure as I described in another topic. Everything works fine, target pc is able to connect my fake AP, able to browse my localhost 192.168.1.1 index.php, but explicitly by typing 192.168.1.1 in the URL
Atul KoshtaParticipantHello sir,
When I try to browse any website (for example your’s favorite bing.com) it shows me :
This site can’t be reached
bing.com refuses to connect
Try:
Checking the connection
checking the proxy and firewall
ERR_CONNECTION_REFUSEDBut amazingly when I type 192.168.1.1 in the URL I get redirected to my kali machine server’s index.php page. This should happen every time when I browse anything in the target machine.
Also when I ran the command ‘ping http://www.google.com’ in the target machine it returns following 4 times with some additional details:
Reply from 192.168.1.1: byte=32 time=3ms TTL=64Atul KoshtaParticipantHi Zaid sir,
I have tried every possible ways including what you have told above but still i am unlucky.Here are steps that i followed:
#Machine started>adapter is plugged in>service network-manager stop>bash ‘flushiptables.sh script path’ >ifconfig .Result is shown below:eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fe59:1b51 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:59:1b:51 txqueuelen 1000 (Ethernet)
RX packets 11651 bytes 16658111 (15.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3310 bytes 233662 (228.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 26 bytes 1350 (1.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26 bytes 1350 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 02> I used following conf file n my recent try which was 24 hours ago:
#dnsmasq.conf
interface=wlan0
dhcp-range=192.168.1.2,192.168.1.100,8h
dhcp-option=3,192.168.1.1
dhcp-option=6,192.168.1.1
address=/#/192.168.1.1#hostapd.conf
interface=wlan0
ssid=Stark Industry
channel=5
driver=nl80211root@kali:~# dnsmasq -C Downloads/dnsmasq.conf
root@kali:~# hostapd Downloads/hostapd.conf
root@kali:~# ifconfig wlan0 192.168.1.1 netmask 255.255.255.0
root@kali:~# service apache2 start#ifconfig now seem like this:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fe59:1b51 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:59:1b:51 txqueuelen 1000 (Ethernet)
RX packets 49597 bytes 71848691 (68.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12782 bytes 802876 (784.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 26 bytes 1350 (1.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26 bytes 1350 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::2c0:caff:fe96:64e9 prefixlen 64 scopeid 0x20<link>
ether 00:c0:ca:96:64:e9 txqueuelen 1000 (Ethernet)
RX packets 1324 bytes 142681 (139.3 KiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 1228 bytes 115622 (112.9 KiB)
TX errors 0 dropped 2 overruns 0 carrier 0 collisions 0#AP is now enabled and devices can connect to it.Moreover they can browse to my server’s index.php,explicitly by typing 192.168.1.1 in url and not automatically upon browsing anything in the browser’s url.
Atul KoshtaParticipant#JUST AFTER STARTING MACHINE AND PLUGGING IN ADAPTER
root@kali:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fe59:1b51 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:59:1b:51 txqueuelen 1000 (Ethernet)
RX packets 9 bytes 1920 (1.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 37 bytes 3138 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 28 bytes 1428 (1.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28 bytes 1428 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0root@kali:~# iwconfig wlan0
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off# I used following conf file n my recent try which was 24 hours ago:
#dnsmasq.conf
interface=wlan0
dhcp-range=192.168.1.2,192.168.1.100,8h
dhcp-option=3,192.168.1.1
dhcp-option=6,192.168.1.1
address=/#/192.168.1.1#hostapd.conf
interface=wlan0
ssid=Stark Industry
channel=5
driver=nl80211Atul KoshtaParticipantHello sir,
I followed exactly same steps as you told in video lectures.Although i created fake AP but i am unable to give internet service to it.As a result whenever any device connects to my fake AP,it does not have any internet service in it.
1. Host connected to my fake AP is not directed to my server’s index.php.Rather an error is shown on his screen that ‘site can’t be reached’
2.UNABLE TO RESTART dnsmasq (unable to run : dnsmasq -C <dnsmasq.conf file path>)2nd time after running ones.I face the following error whenever i edit dnsmasq.conf file and try to run same command again:ERROR : dnsmasq: failed to bind DHCP server socket: Address already in use
*For now i need your help primarily to provide internet access to client connected to my fake AP
PS: I used exactly same conf file and same ip granting commands that you used to created fake AP. - AuthorPosts