Posts

SETTING WIFI ON RASPBERRY PI HEADLESS

Image
Create a file 
wpa_suppicant.confin 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

Hacking TeamViewer? New Vulnerability Disclosed

Image
TeamViewer – The Remote - Support software is found to have a critical vulnerability which could allow users sharing desktop to gain complete control of the other end without their permission.
It was first disclosed by a Reddit user “xpl0yt” on Monday. POC of this vulnerability is posted on GitHub by “gellin”, which is an injectable C++ DLL that uses naked inline hooking and direct memory modification to change TeamViewer permissions.
The injectable C++ DLL can be used by both server and client using DLL Injector. If the Server exploits, it would allows viewers to enable the feature “switch sides”, which is activated only after the server authenticates the control with the client. Which will allow the server to switch the sides.
If the Client exploits, it would allow the client to take control of server . As specified on Github “Allows for control of mouse with disregard to servers current control settings and permissions”.

This affects TeamViewer versions of Windows, MacOS and Linux. TeamVi…

HOW TO SETUP STATIC IP ADDRESS ON RASPBERRY PI

Image
Configuring Network Settings to setup a static IP address on Raspberry Pi
Connecting to your Raspberry Pi without a HDMI display ?  You’ll need its IP address to connect. There are two main forms, static and dynamic. By default, Raspberry Pi will be configured with a dynamic IP address.

Dynamic IP address can change each time you reboot or restart the services, not ideal if you are running Raspberry Pi headless, so you need to keep checking the IP address and connect.

Static IP address is somewhat permanent, it won’t change. So you know your IP address.

To setup a static IP address,
1. Check your IPsudo ifconfig
pi@raspberrypi:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:E5:E0:11
          inet addr:192.168.0.106  Bcast:192.168.0.255  Mask:255.255.255.0           inet6 addr: fe80::a00:27ff:fee5:e011/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:104 errors:0 dropped:0 overruns:0 frame:0           TX packets:80 errors:0 dropped:0 overr…

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 usb0this will bring the network interface up

Then reboot your RPi

sudo rebootConnect Rpi to your Android device. Turn on the USB tethering on the phone.

Tested and working on 

Parrot os Kali linux Raspbian

WHAT IS SSL, TLS AND HTTPS

Image
SSL/TLS are cryptographic protocols that provide communications security over a computer network.
WHAT IS SSL ?
SSL (Secure Sockets Layer) is a standard security technology to create an encrypted link between a server and a client. This link ensures that all data passed between the server and the client remain private and secure. It was designed to support protocols such as FTP, HTTP, TELNET.
HISTORY OF SSL :
The Secure Sockets Layer or SSL was developed by Netscape in 1994 to provide security for web traffic. The first version “SSL version 1.0”, due to its weak cryptographic algorithms and some security flaws, it was never released for public use. The second version 2.0 was released in 1995 considered fairly strong, used MD5. But, it was vulnerable. The next version 3.0 was released in 1996. Which was a complete redesign of the protocol.


SSL :SSL ensures that all the data transmitted will be encrypted.
Two files, Certificate and Private Key are used.

A Digital Certificate certifies the ownersh…

HOW FACEBOOK AND OTHER SOCIAL NETWORKING SITES ARE HACKED

Image
Social networkingservice (also social networking site, SNS or social media) is an online platform that is used by people to build social networks or social relations with other people who share similar personal or career interests, activities, backgrounds or real-life connections.
Social Network Sites such as Twitter, Facebook, Google+ , Pinterest, Instagram have attracted millions of users, many have integrated these sites into their daily practices. There are many sites, with various technological features which support a wide range of interests and practices. Most of them can be linked to their pre-existing social networks which help strangers connect and interact based on shared interests or activities.
This interaction reveals a lot of information, often including personal information visible to anyone who wants to view it. Hence privacy is often a key concern by the users. Since millions of people are willing to interact with others, it is also a new attack ground for malware autho…

THINGS TO DO AFTER INSTALLING KALI LINUX " PART-2 "

Image
1.INSTALLING TORapt-get install torand press ENTER.
To start tor,
service start torFor proxy chain ,
proxychains firefoxIt should be up and running.
2.INSTALLING VIRTUAL BOXTo install Virtual Box,
apt-get install virtualboxIt'll take some time, you'll be good to go. 3.INSTALLING SKYPEGoto the link
https://www.skype.com/en/download-skype/skype-for-linux/
Download the deb version,
Goto the directory and type
dpkg -i <filename>.deb4.INSTALLING TEAMVIEWERGoto the link
https://www.teamviewer.com/en/download/linux/
Download the Ubuntu,Debian file,
Goto the directory and type
dpkg -i <filename>.deb5.INSTALLING LIBREOFFICEType the command,
apt-get install libreofficePress ENTER and wait for it to download and install.
6.INSTALLING GOOGLE CHROMEGoto the link
https://www.google.com/chrome/browser/desktop/
click on Download Chrome for another platform, select LINUX, select .deb package, download. Locate and change your directory and type, dpkg -i <file-name>.debIf you are running as root, D…

THINGS TO DO AFTER INSTALLING KALI LINUX PART-1

Image
1. Enable sound:Most of them have this problem.
pulseaudio -DIt will get back your sound.
2. Changing repository:gedit /etc/apt/sources.listFor kali rolling,copy and paste the following in sources.list file.

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
remove "#" in 3rd line to uncomment.
save and exit.
Check for the latest repository here:
https://docs.kali.org/general-use/kali-linux-sources-list-repositories
 3. Update kali linux:type the below code
apt-get update && apt-get upgrade -y && apt-get dist-upgradeIt'll take some time.
4. Adding a standard user:Kali by default logs in as root. It is always better to use a second user. You can create a standard user.
(But you will have to use " sudo " for most of the commands)
useradd -m <user name>set a password
passwd <your user name>5. Install GDebi P…

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 STARTUPTo enable VNC at boot, nano /etc/init.d/vncboot

Paste the following code
#!/bin/sh ### BEGIN INIT INFO # Provides:…

WHERE IS PROFILE VIEW COUNT??

Image
Google plus had a metric "VIEWS" to keep track of view counts of google profiles and pages.
That number counts how many times your profile, contents, photos, posts and the page has been viewed by other people.
In this new version of google plus, view count was REMOVED.
So, we cant get it back until there's any new update from google.

ENABLE AUTOSTART FOR X11VNC

Image
ENABLING AUTOSTART FOR X11VNC ON KALI LINUX RASPBERRY PITO INSTALL VNC check my last post INSTALL X11VNC ON KALI LINUX RASPBERRY PIOnce 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 the file is created, we need to give some permissions, type


chmod 7…