You are not logged in.
I use the following script to create ad-hoc connection.
#!/bin/bash
sudo iwconfig wlan0 mode ad-hoc
sudo iwconfig wlan0 essid shadyabhi
sudo iwconfig wlan0 key 0123456789
sudo ifconfig wlan0 192.168.1.1
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo su -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sudo iptables -t mangle -A PREROUTING -j TTL --ttl-inc 1
sudo /etc/rc.d/dnsmasq restartSomeone please guide my on how can I find out the hostname of the the machines using my ad-hoc?
My blog:-
http://blog.abhijeetr.com
Offline
http://www.cyberciti.biz/faq/how-to-tes … verse-dns/
If your hosts aren't registering with an internal DNS server, then you won't be able to resolve them.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
@fukawi2
See, I cant find out of what all have used my ad-hoc by checking the file /var/lib/misc/dnsmasq.leases
But, how do I know, who all are "currently" using it?
My blog:-
http://blog.abhijeetr.com
Offline
ping their addresses?
Run tcpdump and/or wireshark to see what traffic is passing through?
tcpdump -lnn -i wlan0Last edited by fukawi2 (2011-03-11 09:16:00)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Why didnt I think of packet sniffing!!
That does the job. Thanks.
My blog:-
http://blog.abhijeetr.com
Offline