-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
quick HOWTO for linux: USB networking + internet access for the p4wnp1 aloa #64
Comments
|
Wow, good joob! We can connect us P4wnP1 to internet and works like ever? Thanks men :) |
For Windows:
|
Ok, i connect with my phone to 172.24.0.1, acced the web interface, goes to "Networking", selected "usbeth" and changed DHCP-SERVER to DCHP-CLIENT, pressed "DEPLOY" but... In my W10 i can't find the network interface "Red no identificada" (spanish) --> "Unidentified network" (english). I have enabled the RNDIS "USB SETTINGS"--> RNDIS (by default) EDIT: Ok, it works!! When y press "DEPLOY" in your web interface, the P4wnP1 don't "tell us" nothing, but if we send a ping (P4wnP1 ssh 172.24.0.1 --> ping 8.8.8.8) we can see the packets 💃 THANKS! |
Hi, I'm having a Problem with sshing into my p4wnp1 after getting dynamic ip (in my case 192.168.137.1). What i tried without success so far: btw I also tried to install software (ettercap) manually but cmake is missing and installing cmake is not working due to make not working properly XD |
I have the same problem. Could you find a solution? Thank you A + |
quick HOWTO for linux: USB networking + internet access for the p4wnp1 aloa
after connecting the p4wnp1 aloa to your computer via USB, setup your linux host computer to forward IP packets
$ echo "1" | sudo tee /proc/sys/net/ipv4/ip_forward
> /dev/null
:$ echo "1" | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null
$ sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s 172.16.0.0/30
bring up the
usb#
interface (usb0
in my case) on your linux host computer$ sudo ifconfig usb0 172.16.0.2 netmask 255.255.255.252
sudo dmesg | grep cdc_ether
to see what interface got created, and/orifconfig -a
to view all your usb interfaces... for me personally, usb0 has been pretty consistent across linux distros I've used.test connectivity, ping the p4wnp1 aloa at 172.16.0.1, and you should get a successful response
$ ping 172.16.0.1
ssh to the p4wnp1 aloa at 172.16.0.1 (DEFAULT SSH PASSWORD:
toor
)$ ssh root@172.16.0.1
setup a default route on the p4wnp1 aloa back to the linux host device:
root@kali:~# route add default gw 172.16.0.2 usbeth
test connectivity via ping to the internet, you should get a successful response
/etc/resolv.conf
root@kali:~# echo "nameserver 1.1.1.1" >> /etc/resolv.conf
when finished, disable forwarding packets on your linux host computer
The text was updated successfully, but these errors were encountered: