Parsia-Code

module
v0.0.0-...-56ad08b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MIT

README

Random Code

This repository contains most of the code that I write for my blog posts. I realized I have random repositories on Github. I am consolidating them into one.

Individual Licenses

Most code in this repository is governed under the MIT. Some code may have a different license, check each directory for a license file.

Security Code

Security code will be mostly in https://github.com/parsiya/Go-Security.

Code Index

This table will help but may not be current. Look inside each individual directory to see the code.

WinAppDbg Tutorials

Code for my set of WinAppDbg tutorials.

  1. Copy the winappdbg directory to your Virtual Machine.
  2. Install Python, WinAppDbg and other software using instructions in part 1.
  3. Follow the tutorials and enjoy.
  4. If code is wrong, make an issue here or yell at me on Twitter/email/etc.

Proof of Concepts

Code WSL Remote RCE - CVE-2021-43907

See the blog at https://parsiya.net/blog/2021-vscode-wsl-rce/.

Also exists in https://github.com/parsiya/code-wsl-rce.

Semgrep

Semgrep Autofix

Practice rules and code for the blog A Hands-On Intro to Semgrep's Autofix.

Go

Go is dope, also see https://github.com/parsiya/Go-Security.

Cryptopals

Doing the Cryptopals challenges with lol no generics.

Gophercises

Gophercises by Jon Calhoun.

Blackfriday and gographviz

Code for blog post Blackfriday's Parser and Generating graphs with gographviz.

Byte Wrangling and Windows Filetime

Code for blog post Windows Filetime Timestamps and Byte Wrangling with Go.

filePath.Ext notes

Code for blog post filepath.Ext Notes.

SANS Holiday Hack Challenge 2018

See the write-up at:

Files:

  • decrypt.go: Decrypts the password vault.
  • cleaned-malware.ps1: Cleaned version of the PowerShell malware.

Python

Hipchat Proxy

Small proxy that I wrote for proxying Hipchat.

Malware Adventure

Small text adventure written in Python using PAWS (Python Adventure Writing System). Created as part of the class activity for "Advanced Topics in Computer Security" in 2013 at Johns Hopkins.

PAWS 2.1 is a fork by Matthias C. Hormann at https://github.com/Moonbase59/PAWS. PAWS was originally created by Roger Plowman.

Customizing SimpleHTTPServer

Code for the blog post Customizing Python's SimpleHTTPServer.

pcap2csv

A few python scripts to extract information from pcap files to csv.

.NET Remoting

Code and example program used in:

Rust

Fearless Concurrency.

YAML Wrangling with Rust

Code for the blog post YAML Wrangling with Rust.

Burp

Mostly Burp extension code.

Cryptography in Python Burp Extensions

Code and example program used in:

Hiding OPTIONS in Burp

Code used in:

Swing in Python Burp Extensions
Using Mozilla Rhino to Run JavaScript in Java

Code used in:

Java SQLite Test

Sample code to learn how to interact with a SQLite database in Java with org.xerial.sqlite-jdbc.

Cryptography

Cryptopals in C

Doing the first few cryptopals challenges in C (why?!).

Decrypting an Application's Encrypted Log

This code decrypts an application's logs. It uses the Mersenne Twister Engine with a specific seed to create a key stream. See the blog post at:

Endpoint Discovery using Windows DNS Cache

A couple of PowerShell scripts that use the Windows DNS cache to discover application endpoints.

Octopress Image Popup Plugin Forked

This is a fork of the Octopress Image Popup Plugin at https://github.com/ctdk/octopress-image-popup by Jeremy Bingham. The original instructions did not work for me out of the box so I made some minor changes. Because it has a different license, I am keeping it in a separate repository.

Calculator in C++

I found this code in an old archive. It's some calculator I wrote back in undergrad. It draws shapes on the screen and depending on where you click, you get a number. Pretty much all of it was done manually. The only thing I remember, is that I needed to have C:\\egavga.bgi for it to work. Fun times.

Directories

Path Synopsis
cryptopals
gophercises
01-quiz/bonus-cleanup
LOL Object Oriented.
LOL Object Oriented.
13-quiethn/hn
Package hn implements a really basic Hacker News client
Package hn implements a really basic Hacker News client
15-recover_chroma
debug.go contains all the code for exercise 15.
debug.go contains all the code for exercise 15.
20-pdf
Generate the course completion PDF.
Generate the course completion PDF.
20-pdf/corp
Contains constants for the package.
Contains constants for the package.
python-burp-crypto
semgrep-autofix

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL