Skip to content

Instantly share code, notes, and snippets.

View MantisSTS's full-sized avatar
🏠
Working from home

Richard Clifford MantisSTS

🏠
Working from home
View GitHub Profile
@MantisSTS
MantisSTS / gist:3437325
Created August 23, 2012 14:46 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
<?php
$i = 1;
foreach( $ad_campaigns as $key => $campaign ):
?>
@MantisSTS
MantisSTS / rootkit.py
Last active September 9, 2024 07:48
Simple python rootkit
#!/usr/bin/python2.7
import socket
# import socks
import urllib2
import sys
import subprocess
import string
import random
import os
@MantisSTS
MantisSTS / infosec_newbie.md
Created June 13, 2018 09:11 — forked from mubix/infosec_newbie.md
How to start in Infosec
@MantisSTS
MantisSTS / FridaTemplate.js
Created February 12, 2019 21:42
Quick Frida Template - Used in FridaLabs
setImmediate(function(){
Java.perform(function() {
var currentApplication = Java.use("android.app.ActivityThread").currentApplication();
var context = currentApplication.getApplicationContext();
// Extra Code Goes Here
});
});
@MantisSTS
MantisSTS / Entropy.php
Last active March 11, 2019 17:21
Find High Entropy Strings in Web Pages
<?php
class Entropy {
protected $minEntropy = 30;
protected $minStrLength = 12;
protected $found = [];
protected $chars = [];
protected $fileContents = [];
protected $plusWeight = 5;
protected $prevChar = 5;
@MantisSTS
MantisSTS / he.py
Created April 5, 2019 09:36
Find High Entropy Strings ( functions from truffleHog )
import sys
import math
def get_strings_of_set(word, char_set, threshold=20):
count = 0
letters = ""
strings = []
for char in word:
if char in char_set:
letters += char
<?php // For highlighting
/**
* Clone a block
*
* @param string $blockname
* @param integer $clones
* @param boolean $replace
* @return string|null
*/
public function cloneBlock($blockname, $clones = 1, $replace = true)
#!/bin/bash
host=$1
cleanhost(){
echo $host | sed -E 's/^http[s]?[:/]+//g' | cut -d '/' -f1
}
run_nikto(){
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvO+8ogy8LofCd1hpZFwHadkJq+ebbwOrcHfmoVeX3POe39ZExcQpnSE/v3kaGp3Puk0X4e4M0J7pLlaAQNuwBKD7sRsm7vw00v04mgKUObYStOzkhM8eGcNGGOqEsp1Wmrj30x2OqFO1zHzqreqpPnRdmz5VSMWenml+0uRLhU8XLsfZmdhGL7Zy5pLodZglHkzQ0AZ3gLuJAAq8FbTlkmjSlYPjdfE0pKztOS0EO57btp6cSiDXmghNZp53dlkWsldWRz8NzN2FEFMUaQSCy4/7onoyZ8VVxv/Yws0ES9ZUy0Q9bXbDpKjwKGbxKnxyjZaSFbycXRU/Ac7HJwBC/ p50002614@MATMITLT1702