Instantly share code, notes, and snippets.

View reboot-powerbox.py
#!/usr/bin/env python3
import requests
import urllib3
from html.parser import HTMLParser
ip = '192.168.25.1'
credentials = ('admin', 'gvt12345')
class SessionIdFinder(HTMLParser):
View shell_escape.c
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
/**
* Escapes a string for use with bash shell, formatted as $'...'.
*
* @param input the input string you want to escape.
*
* @return the escaped string (which must be free'd after use).