Posts

Showing posts with the label raspberry pi

SETTING WIFI ON RASPBERRY PI HEADLESS

Image
Create a file  wpa_suppicant.conf   in the boot partition of the SD card Open it with a text editor and paste the following ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={  ssid="<YOUR NETWORK NAME>"  scan_ssid=1  psk="<PASSWORD>"  key_mgmt=WPA-PSK } Edit the ssid and psk feilds . Enter your network Name and Password with " " Save and start the Pi. For Starting SSH service,  Check AUTOSTART SSH ON RASPBERRY PI 3       Raspberry Pi 3 model B without headless mode & an HDMI cable

USB TETHERING ON RASPBERRY PI

Image
How to connect Raspberry pi using USB tethering on Android Raspberry pi with its default config cant connect through USB Tethering. Network interface should be manually enabled. Open Terminal, enter the following command sudo nano /etc/network/interfaces This will open the interfaces file. Add the following line to that file, iface usb0 inet dhcp The file after modifying should look like this Press ctlr + x,  Y to Save and Exit. Enter the following command sudo ifup usb0 this will bring the network interface up Then reboot your RPi sudo reboot Connect Rpi to your Android device. Turn on the USB tethering on the phone. Tested and working on  Parrot os  Kali linux  Raspbian

INSTALL TIGHTVNC ON KALI LINUX RASPBERRY PI

Image
Install TightVNC server using the following command apt-get install tightvncserver Run VNCserver to generate the configuration files. vncserver :1 VNC sessions are not linked to Linux user authentication.It is just protected by a password.So, it is better to change your password. Change your password using vncpasswd Run the command to check the VNC connection netstat -tupln Use a VNC application such as VNC CONNECT and login using the PI's IP Address. Download the  VNC CONNECT   To run VNC over SSH, we can create a SSH tunnel. Start your VNC server vncserver :1 -geometry 1280x800 -depth 16 -localhost -nolisten tcp -locahost option will ensure VNC port is listening only on local interface. -nolisten tcp - X Server will not listen on the network. Now, create a SSH tunnel  ssh -L 5901:localhost:5901 -N -f <user>@<ip> Any connection to this port will be tunneled by SSH. ENABLE AT STARTUP To...

ENABLE AUTOSTART FOR X11VNC

Image
ENABLING AUTOSTART FOR X11VNC ON KALI LINUX RASPBERRY PI TO INSTALL VNC check my last post INSTALL X11VNC ON KALI LINUX RASPBERRY PI   O nce you've started the service, it'll run until you stop it or reboot. To Autostart it during BOOT , follow these steps. Create a file "sharex11vnc" in the directory /usr/local/bin Open a terminal, type cd /usr/local/bin this will take you to that directory. To create a file, type nano sharex11vnc Enter the following,   #!/bin/sh x11vnc -ncache 10 -auth guess -repeat -nap -loop -forever -rfbauth ~/.vnc/passwd -desktop "VNC ${USER}@${HOSTNAME}"|grep -Eo "[0-9]{4}">~/.vnc/port.txt # comment this out if you dont want a pop up telling you which port you're using zenity --info --text="Your VNC port is 'cat~/.vnc/port.txt'" press Ctrl+x then press "y" then hit Enter . This will save the file. This script will run the x11vnc during boot. Once t...

INSTALL X11VNC ON KALI LINUX RASPBERRY PI

Image
Once your PI is  configured, update it.  apt-get update  apt-get upgrade After everything is updated, install x11vnc by typing apt-get install x11vnc  After it is installed, set up a password to connect to your PI. Type, x11vnc -storepasswd Enter your password and press enter and you're done. To connect through vnc, first you need to start the service.Type the following command to start it. x11vnc -ncache 10 -auth guess -nap -forever -loop -repeat -rfbauth /root/.vnc/passwd -rfbport 5900 -noncache Use a VNC application such as VNC CONNECT and login using the PI's IP Address. Download the VNC CONNECT   https://www.realvnc.com/download/vnc/ CHECK MY   ENABLE AUTOSTART FOR X11VNC    TO AUTOSTART IT DURING BOOT

AUTOSTART SSH ON RASPBERRY PI 3

Image
Due to Security reasons now SSH service is disabled by default. We can enable is by   service ssh start If we do not have a display to connect through HDMI, we have to use SSH. To connect through SSH, First the SSH service should be running on the system. To Auto start SSH during boot, we can just add a file named " ssh " without specifing any extension. Follow these steps  Create an Empty File, with name ssh . Open a Notepad, click on Save As In File Name field, type "ssh"  (with double quotes) In Save as type field,  select " All files ". So it creates a file without any extention. Connect your Pi's SD card to your computer, Open the drive boot (In my case its boot, it may vary.Please check for the proper drive), and paste the ssh file. Insert SD card into your PI and REBOOT. And you should be good to connect through SSH.

INSTALLING KALI LINUX 2017 ON RASPBERRY PI 3

Image
Installing kali 2017 on Raspberry pi 3 Installing kali is pretty simple. Use a 8/16gb sd card so that there’ll no complications. Follow these steps, Download the official Kali Linux image for Raspberry pi.                     https://www.offensive-security.com/kali-linux-arm-images/ Extract the Downloaded file. Use WinRAR to extract. Download WinRAR from               http://www.rarlab.com/download.htm   Write the Image to the SDcard. Use Win32Disk Imager. Select the correct drive and click on write. Download Win32Disk Imager from                  https://sourceforge.net/projects/win32diskimager/ Once the Image is written, Insert it into the Pi and boot. Use a HDMI cable with a mouse and keyboard to access it.                       ...