Skip to content

Instantly share code, notes, and snippets.

@opnchaudhary
opnchaudhary / facebookHelper.php
Created February 5, 2013 08:38
Simple library to assist in getting the Facebook Fan Page Id
<?php
/**
* A simple library to assist in getting the Facebook Fan Page Id
* @author Paras Nath Chaudhary
* @copyright CopyLeft (ↄ) 2013, writephp.blogspot.com
* @license GPL
* @since Version 1.0
* @version 1.0
Implementation
@opnchaudhary
opnchaudhary / MY_Upload.php
Created January 22, 2013 12:53
codeigniter multiple file uploader by : Romaldy Minaya
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
*//**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author Romaldy Minaya
* @copyright Copyright (c) 2011, PROTOS.
@opnchaudhary
opnchaudhary / fedora-post-installation.sh
Last active September 12, 2016 12:38
fedora post installation script
#!/bin/sh
#Install RPMFusion, free and non-free repository
yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm -y
#Configure yum : disable gpg checking, enable caching, keep metadata for 9 days
#vi /etc/yum.conf
#If the wireless device is not supported out of the box, and if it is a Broadcom WLAN device
#yum install kmod-wl -y
@opnchaudhary
opnchaudhary / makebacktrack.sh
Created December 20, 2012 01:12
adds backtrack repository to your ubuntu
#!/bin/sh
wget -q http://all.repository.backtrack-linux.org/backtrack.gpg -O- | sudo apt-key add -
sudo sh -c "echo 'deb http://all.repository.backtrack-linux.org revolution main microverse non-free testing' >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-get upgrade
@opnchaudhary
opnchaudhary / pentestTools.sh
Last active August 9, 2018 02:25
This script will download the security tools needed for pentesting in fedora
#!/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