Play Raspberry Pi again.

Source: Internet
Author: User

Long time no play Raspberry Pi, want to use a Kali, then think of Raspberry Pi. Last night was so willful to start the Raspberry Pi immediately, but there was only one cable, and then this Mac is always not directly connected to the Raspberry Pi through the network cable. Mac Ping does not pass the Raspberry Pi. And with a network cable connected to the Raspberry Pi within about a minute will produce a 172.18.124.1 default gateway, but ARP does not have its physical address. It is still useless to delete the default route and add it according to various methods on the Internet. I think I am missing a network cable, so I went to buy a two-meter network cable, and then the Mac and Raspberry Pi as two LAN port connected to the router. Do not know is not the reason for not setting up DHCP, the Raspberry Pi has not been getting IP, then my Mac is set to static IP. OK, I don't know, anyway, finally I put the cable into the dorm to the WAN port of the router, then you can access the router's 192.168.0.1 in the browser. Then in the DHCP client that column found my Raspberry Pi IP, is 192.168.0.5. Then finally can ssh to the Raspberry Pi, began not to know whether to forget the password, or wrong has been prompted password error, then the eldest brother finally found the password, the original or the password has not changed.

All right, I'm finally connected, celebrate!

Then use a network cable connected to the Mac, but the Raspberry Pi can not surf the internet Ah, so find the wireless card bought before, inserted in the Raspberry Pi. But every time I plug in, it just starts to light up a little while, and then it's gone, butifconfig -aYou can still find the wlan0, indicating that the Raspberry Pi is recognized by the network card. Then I looked at the blog online and said it was in the editor.sudo vi /etc/network/interfacesThen, to reboot, the Raspberry Pi will be able to connect to the hotspot based on the SSID and encryption of the hotspot you have configured. OK, it's done, now my Raspberry Pi has two IPs (corresponding to two network cards respectively)

Then I ping the Raspberry Pi through two network cards, and I find that the delay of the wireless network and the delay of the wired are not an order of magnitude.

Then it's about how the Raspberry Pi is going online. Although the Raspberry Pi is now connected to my Windows hotspot, there is no default gateway set (it will not find it by itself). OK, I'll set the default gateway myself.
route add default gw 192.168.23.1
There are Linux undergw, and the OSX platform is directlyroute add default 192.168.23.1Nogw。 This is the difference between them.
Sure enough! Add a default route to the Internet!

Haha, finally can surf the internet good excited, immediatelyapt-get updateA moment.
Here I use two network cards ssh to the Raspberry Pi respectively Oh ~

Ready to use it.metasploitThe results found that Metasploit and PostgreSQL were not installed, soapt-get install postgresql metasploit-framework, the result is that IP access from the wallhttp.kali.orgWhen really is turtle speed ah, at least I am 4M bandwidth eh, you give 30k/s to me to download, simply straight SS Global mode, and then the basic full speed two minutes to get it done. Because my Raspberry Pi is not installed SS, I am using my mac download Metasploit, so I have to upload this download file to the Raspberry Pi, to usescpThis command.
At first, I used it in the Raspberry Pi terminal.[email protected]:~# scp 192.168.0.6:/Users/caiqiqi/Downloads/metasploit-framework_4.11.5-2016010401-0kali1~r1u1_armhf.deb /root
The result?

This is because my Mac does not have the SSH service turned on.
So I used it in my Mac's terminal.
scp /Users/caiqiqi/Downloads/metasploit-framework_4.11.5-2016010401-0kali1~r1u1_armhf.deb [email protected]:/root/
Ok! Done, the speed is very fast, basically is the theoretical bandwidth of the local area network.

OK, bymsfconsoleGo to Metasploit's console!

Play Raspberry Pi again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.