Skip to content

Instantly share code, notes, and snippets.

View skyrocknroll's full-sized avatar

Yuvaraj L skyrocknroll

View GitHub Profile
#!/bin/bash
# by TB : 2012-10-12
if [ "$USER" != "root" ]
then
echo "You must be root to execute this script (in order to instruct the kernel to drop the cache)!"
exit 1
fi
if [ -z "$1" ]

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

  • virtualenv
  • Django
  • nginx
  • uwsgi
#!/bin/sh
#Reconnaissance
yum install dsniff hping3 nc6 nc ncrack ngrep nmap nmap-frontend p0f sing scanssh scapy socat tcpdump unicornscan wireshark-gnome xprobe2 nbtscan tcpxtract firewalk hunt dnsenum iftop argus ettercap ettercap-gtk packETH iptraf pcapdiff etherape lynis netsniff-ng tcpjunk ssldump yersinia net-snmp openvas-client openvas-scanner
#Forensics
yum install ddrescue gparted hexedit testdisk foremost sectool-gui scanmem sleuthkit unhide examiner dc3dd afftools srm firstaidkit-plugin-all ntfs-3g ntfsprogs
#Web Application Testing
yum install httping nikto ratproxy lbd skipfish
@skyrocknroll
skyrocknroll / hardDiskInfo.sh
Last active December 10, 2015 18:28
hard disk performance Tuning
#Linux Command To Find SATA Link Speed Such as 1.5 / 3.0 / 6.0 Gbps [ Hard Disk ]
grep -i SATA /var/log/messages | grep --color -i 'link up'
#To performance Test
hdparam -tT /dev/sda
#To get more details about hard disk
hdparam -I /dev/sda
#To Get SATA support by the hard disk
@skyrocknroll
skyrocknroll / WakeonLan.md
Created January 9, 2013 07:03
How to do wake on lan (WOL) in linux

Wake on Lan

apt-get install wakeonlan etherwake

#Networking Tools

mii-tool eth0 ethtool eth0

ReConfigure locales otherwise you will get warning whenever try to install package
select en_IN , en_US , en_US.UTF-8
dpkg-reconfigure locales
Add the following lines to /etc/profile
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
@skyrocknroll
skyrocknroll / remotelogin.sh
Created January 10, 2013 08:24
Login in to remote unix/Linux machine without entering password.
ssh-keygen
ssh-copy-id root@10.30.0.10
ssh-add
@skyrocknroll
skyrocknroll / perftest.gnu
Created January 16, 2013 09:11
GnuPlotExample
set xlabel "Concurrent Requests"
set ylabel "Response Time (ms)"
set title "Nginx Get"
set terminal png
# set style line 1 lt 2 lc rgb "red" lw 3
@skyrocknroll
skyrocknroll / instructions.nfo
Last active December 11, 2015 10:18
How to configure apache reproxy module from this source https://github.com/jamis/mod_reproxy
git clone https://github.com/jamis/mod_reproxy
#To find which apache mpm is installed
apache2 -l
apache2 -M
apache2 -t -D -DUMP_MODULES
#We need to install this package to get apxs2 command for mpm-worker
apt-get install apache2-threaded-dev
@skyrocknroll
skyrocknroll / reproxy-kazuho.nfo
Last active December 11, 2015 11:28
How to configure apache reproxy module from this source https://github.com/kazuho/mod_reproxy
git clone https://github.com/kazuho/mod_reproxy.git
#To find which apache mpm is installed
apache2 -l
apache2 -M