This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create a loop device “lo0” | |
ifconfig lo0 10.0.0.1 alias | |
# forward input data at 10.0.0.1:80 to real server 127.0.0.1:9090 | |
ipfw add fwd 127.0.0.1,9090 tcp from me to 10.0.0.1 dst-port 80 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New data at MASTER gets saved to SLAVE as backup data | |
MASTER > 192.168.1.5 | |
SLAVE > 192.168.1.8 | |
### TEST CONNECTION on BOTH SIDES with $nc IP 3306 | |
# MASTER config | |
$vi /etc/mysql/my.cnf | |
* add | |
bind-address = LOCAL_IP_ADDRESS | |
server-id=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a "NEED TO HAVE" KALI Linux application and settings to prettify it | |
#INSTALL KALI WITHOUT NETWORK BECAUSE SOMETIMES CANT REACH APT SERVERS AND IT STUCKS Note:{if you are stucked and dont want to rebegin just pres CTRL+ALT+F2 or F3 or F5} and type `ps` and `kill $PROCESS_NR` ,usualy apt-get stucks, than get back with CTRL+ALT+F4 | |
#/etc/apt/sources.list must have those lines | |
deb http://http.kali.org/kali kali main contrib non-free | |
deb http://security.kali.org/kali-security kali/updates main contrib non-free | |
#run a update | |
apt-get clean && apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install Sublime v3 build 3059 FULL x32 or x64 | |
x64bit_url=http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3059_amd64.deb | |
x32bit_url=http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3059_i386.deb | |
cd /tmp;wget $URL;dpkg -i FILENAME.deb | |
#act | |
mv /opt/sublime_text/sublime_text /opt/sublime_text/sublime_text.bak | |
#for x32# | |
xxd /opt/sublime_text/sublime_text.bak | sed -e 's/00300d0: ffff 83c4 1085 c00f 94c0 84c0 a268 ce4f/00300d0: ffff 83c4 1085 c090 9090 9090 a268 ce4f/g' | xxd -r > /opt/sublime_text/sublime_text | |
#for x64# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Definitions: | |
PEM/DER - file data format type | |
CSR - Certificate Signed Request: Can be sent to the certificate authority, if they can handle files in PEM format. If not, use the extra argument '-outform PEM|DER|NET' | |
CRT - Certificate created and signed by a private key | |
RSA - The public/private key algorithm | |
# Generate private key METHOD 1 using "genrsa" (PEM format only) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#hashcat | |
NTLMv1: | |
Username::Domain:NetLM/ESS-challenge:NTLMv1hash | |
Example: | |
test::LAB:22CDA4417A1442A500000000000000000000000000000000:C4D2A3981677C4E5BDC7ABFB38E81A247EA6908A41F41610:1122334455667788 | |
NTLMv2: | |
Username::Domain:NTLMv2hash:blob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install pptpd -y | |
update-rc.d pptpd disable | |
echo "localip 10.10.10.1 | |
remoteip 10.10.10.2-200" >> /etc/pptpd.conf | |
echo "ms-dns 8.8.8.8 | |
ms-dns 8.8.4.4 | |
ms-dns 4.2.2.2 | |
ms-dns 4.2.2.1" >> /etc/ppp/pptpd-options |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###### CREATE A ROOTCA CERT | |
#create folders and index for openssl.cnf | |
cd /etc/pki/CA | |
mkdir certs crl newcerts private | |
chmod 700 private | |
touch index.txt | |
echo 1000 > serial | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
selinux stuff with security-contex | |
#check if is enabled | |
getenforce | |
# disable | |
setenforce 0 | |
#RESET recursive | |
restorecon -Rv /site/logs |