Skip to content

Instantly share code, notes, and snippets.

View brandonprry's full-sized avatar
☠️
thought bleeding

Brandon Perry brandonprry

☠️
thought bleeding
View GitHub Profile
COOKIE='your_web_session_cookie_use_document.cookie_in_js_console'
SHOP='your_shop_id'
for i in `seq 0 39 500`; do curl --retry 5 \
-H $'Host: www.etsy.com' -H $'Authority: www.etsy.com' -H $'Accept: application/json, text/javascript, */*; q=0.01' -H $'Accept-Language: en-US,en;q=0.9' -H $'Content-Type: application/json' -H $'Referer: https://www.etsy.com/your/shops/WanderingRobotStudio/tools/listings/view:table/1492031241' -H $'Sec-Ch-Ua: \"Google Chrome\";v=\"113\", \"Chromium\";v=\"113\", \"Not-A.Brand\";v=\"24\"' -H $'Sec-Ch-Ua-Mobile: ?0' -H $'Sec-Ch-Ua-Platform: \"macOS\"' -H $'Sec-Fetch-Dest: empty' -H $'Sec-Fetch-Mode: cors' -H $'Sec-Fetch-Site: same-origin' -H $'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36' -H $'X-Detected-Locale: USD|en-US|US' -H $'X-Requested-With: XMLHttpRequest' \
-b "$COOKIE" \
$'https://www.etsy.com/api/v3/ajax/shop/'$SHOP'/listings/search?limit=200&offset='$i'&sort_field=ending_da
#export https_proxy=http://127.0.0.1:8081
USER=''
PASS=''
KEY="bd516a32ff7db81c4a991acfc5656da3" #not secret
TALENT="967951"
VERSION="48"
rm /tmp/fdsa
@brandonprry
brandonprry / afl-ptmin.sh
Last active March 15, 2023 11:44
Parallelize afl-tmin to use multiple cores
#!/bin/bash
cores=$1
inputdir=$2
outputdir=$3
pids=""
total=`ls $inputdir | wc -l`
for k in `seq 1 $cores $total`
do
@brandonprry
brandonprry / gist:3014103
Created June 28, 2012 21:39
wapiti_to_sqlmap
#!/usr/bin/env ruby
require 'active_support/secure_random'
require 'rexml/document'
wapiti_path = '/home/bperry/tools/wapiti/trunk/src/'
sqlmap_path = '/home/bperry/tools/sqlmap/'
wapiti_report_path = '/tmp/wapiti_report_' + SecureRandom.uuid + '.xml'
Turn on debugging.
Still install sshd. File transfer over adb push/pull is too slow.
#Disable Sound
$ adb shell input keyevent 164
$ adb shell svc power stayon true
$ adb tcpip 4321 #Enable adb over wifi.
@brandonprry
brandonprry / gist:5711340
Last active July 1, 2022 23:40
Cross-platform metasploit payload
using System;
using System.Runtime.InteropServices;
namespace MetasploitPayload
{
class MainClass
{
public static void Main(string[] args)
{
OperatingSystem os = Environment.OSVersion;
repeat
tell application "System Events" to key code (random number from 0 to 44)
delay 8
end repeat
@brandonprry
brandonprry / gist:5726268
Last active March 3, 2018 01:59
Dirty C# decompiler
using System;
using ICSharpCode.Decompiler.Ast;
using System.IO;
using Mono.Cecil;
using ICSharpCode.Decompiler;
using System.Collections.Generic;
namespace Decompiler {
class MainClass {
public static void Main (string[] args) {
cred_collection = ::Metasploit::Framework::CredentialCollection.new(
user_file: datastore['USER_FILE'],
username: datastore['USERNAME'],
blank_passwords: true
)
apt-get install xvfb && Xvfb :1 -screen 0 640x480x8 && export DISPLAY=:1.0 ; xcalc