Install:
$ brew update && brew install composer
$ composer global require psy/psysh
# If asked what version constraint to use just type `*`
Update Your PATH
for global CLI use:
#!/bin/bash | |
# | |
# Command Injector v0.1 | |
# greg.foss[at]owasp.org | |
# modified version of dirtshell by 'superkojiman' to exploit command injection vulnerabilities / access web shells via cli | |
# dirtshell.sh => http://blog.techorganic.com/2012/06/lets-kick-shell-ish-part-1-directory.html | |
function usage { | |
echo "usage: -u URL" | |
echo "eg : -u \"http://site.com/index.php?cmd=\"" |
http { | |
log_format bodylog '$remote_addr - $remote_user [$time_local] ' | |
'"$request" $status $body_bytes_sent ' | |
'"$http_referer" "$http_user_agent" $request_time ' | |
'<"$request_body" >"$resp_body"'; | |
lua_need_request_body on; | |
set $resp_body ""; | |
body_filter_by_lua ' |
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
.PHONY: using-gcc using-gcc-static using-clang | |
using-gcc: | |
g++-4.8 -o main-gcc -lasan -O -g -fsanitize=address -fno-omit-frame-pointer main.cpp && \ | |
ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) ./main-gcc | |
using-gcc-static: | |
g++-4.8 -o main-gcc-static -static-libstdc++ -static-libasan -O -g -fsanitize=address -fno-omit-frame-pointer main.cpp && \ | |
ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) ./main-gcc-static |
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"flag" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) |
function ,hopper() { | |
local path | |
case "$1" in | |
/*) | |
path="$1" ;; | |
*) | |
path="$(pwd)/$1" ;; | |
esac | |
/usr/bin/osascript <<EOM | |
tell application "Hopper Disassembler v3" |
## Remove any existing rules | |
-D | |
## Buffer Size | |
## Feel free to increase this if the machine panic's | |
-b 8192 | |
## Failure Mode | |
## Possible values are 0 (silent), 1 (printk, print a failure message), | |
## and 2 (panic, halt the system). |
Install:
$ brew update && brew install composer
$ composer global require psy/psysh
# If asked what version constraint to use just type `*`
Update Your PATH
for global CLI use:
Make sure everything is up to date.
#include <fstream> | |
using namespace std; | |
ofstream logfile; | |
void LogToFile(QtMsgType type, const char *msg) { | |
QString datetime = QDateTime::currentDateTime().toString("yyyy.MM.dd hh:mm:ss"); | |
switch (type) { | |
case QtDebugMsg: | |
logfile << datetime.toString().toAscii().data() << " [Debug] " << msg << "\n"; |