I hereby claim:
- I am 0xdade on github.
- I am dade (https://keybase.io/dade) on keybase.
- I have a public key ASDoG6G5j-BprfJi_lqfeOzU-n5EYAOLuucR6uECqM6yXwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
from flask import Flask, request, Response | |
app = Flask(__name__) | |
@app.route('/', defaults={'path': ''}, methods=['GET', 'POST']) | |
@app.route('/<path:path>', methods=['GET', 'POST']) | |
def catch_all(path): | |
if request.form: |
from flask import Flask, request, Response | |
import requests | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
url = requests.args.get("url") | |
r = requests.get(url) | |
return Response(r) |
$ git branch -m master main
$ git push origin main
master
branch, delete them.$ git push origin :master
master
branch, recreate them on the main
branch.master
and replace with main
as necesary.
git branch --unset-upstream
# Based on https://twitter.com/stokfredrik/status/1185580290108018694 | |
# Turns into a bash function to ease use further | |
# Relies on: | |
# - https://github.com/tomnomnom/unfurl | |
# - https://github.com/michenriksen/aquatone | |
# - https://cli.shodan.io/ | |
# Put this function in your .bash_profile or .bashrc file and then source it and you can use it like so: | |
# $ prowl elasticsearch | |
function prowl { |
<html> | |
<head> | |
<!-- Using this pre-ES6 fork of Dracula https://github.com/grigoryk/dracula-js-fork --> | |
<script type="text/javascript" src="dracula-js-fork/raphael-min.js"></script> | |
<script type="text/javascript" src="dracula-js-fork/dracula_graph.js"></script> | |
<script type="text/javascript" src="dracula-js-fork/dracula_algorithms.js"></script> | |
<script type="text/javascript" src="dracula-js-fork/dracula_graffle.js"></script> | |
<script type="text/javascript" src="dracula-js-fork/seedrandom.js"></script> | |
<script> | |
function drawGraph() { |
#!/usr/bin/env python3 | |
''' | |
Python version of generating excuses that are generated by http://whythefuckwasibreached.com/ | |
These actors, methods, targets, mitigations are not my own - they are copied directly from the whythefuckwasibreached website. | |
I ported it to a python script so that it could be used for easy command line integration | |
Long live LOLBOAT Enterprise Edition | |
''' | |
import random |
#!/usr/bin/env python3 | |
''' | |
Simple script for downloading a list of ip addresses that match a query from a natlas server | |
Input: | |
- Required: natlas url | |
- Required: Search query, contained in quotes if it includes spaces | |
- Optional: filename to save results to | |
Example: ./fetch-natlas-results.py https://natlas.io 'ports.port:443 "application/json"' json-443.txt | |
If no filename is present, the script will spit the results to stdout once they are all downloaded | |
''' |
#!/bin/bash | |
# Enter repository folder and pull the latest version | |
# (This is done with a read-only deploy key on a private repo) | |
# `hugo` with no parameters builds the default version of the site, which has baseUrl="https://0xda.de" | |
# Copy the built files (from public/*) into the webserver folder | |
# Build a new version of the site with the baseUrl set to the onion address | |
# Copy the built files from public/* to the onion web server directory | |
cd 0xdade.github.com && \ | |
git pull && \ |
#!/usr/bin/env python3 | |
''' | |
Determine if this python is part of an executable or a standalone script and then delete the file accordingly. | |
If the script has been bundled into an executable using pyinstaller (such as pyinstaller --onefile <fname>.py) then the realpath of __file__ will be incorrect, thus the use of sys.executable. | |
Example of just relying on __file__: | |
$ pyinstaller --onefile test.py | |
[...] | |
$ ls dist/ |