This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import curses | |
import curses.panel | |
def main(win): | |
global stdscr | |
global max_y,max_x,mult | |
stdscr = win | |
curses.initscr() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Script to open TCP connection and send 1 HTTP GET request containing | |
a specific string, and header | |
Usage: | |
./http.py <IP_of_target> | |
There is only one mandatory argument, which is the target IP address. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import aiohttp | |
import json | |
async def retrieve_data(postdata): | |
async with aiohttp.ClientSession() as client: | |
#use the excellent httpbin.org as a springboard | |
postrep = await client.post('http://httpbin.org/post',data={"postkey":postdata}) | |
jsonobj = json.loads(await postrep.text()) | |
return jsonobj['form']['postkey'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Python file uses the following encoding: utf-8 | |
import openai | |
import requests | |
import sys | |
from PIL import Image | |
# sample usage of Dalle-2 via Python | |
# from CLI with sys for args | |
variations = 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Python file uses the following encoding: utf-8 | |
import openai | |
import requests | |
import sys | |
from PIL import Image | |
from uuid import uuid4 | |
import os | |
image_to_vary = sys.argv[1] | |
try: |