Skip to content

Instantly share code, notes, and snippets.

View ChrisPritchard's full-sized avatar
🍻
...

Christopher Pritchard ChrisPritchard

🍻
...
View GitHub Profile
@ChrisPritchard
ChrisPritchard / caller.html
Created May 26, 2022 20:56
Simple JS Page that retrieves latest commits from all Azure DevOps repos in a project, with optional filters
<html>
<head>
<title>Latest Commits</title>
<style>
label {
display:block;
}
</style>
</head>
<body>

Putting Linux on an Asus VivoBook

My device: Asus VivoBook Series X206HA-FD0077T Notebook

  • Use rufus on windows to write a linux iso to a usb drive (A)unite
  • ESC will get into the boot menu / grub. if the latter, open system settings to get into bios/uefi
  • save & exit allows you to override the boot order and boot from USB
@ChrisPritchard
ChrisPritchard / pomodoro.go
Created March 11, 2022 07:48
pretty simple command line go pomodoro implementation
package main
import (
"bufio"
"fmt"
"os"
"strings"
"time"
)
@ChrisPritchard
ChrisPritchard / mf.c
Last active April 27, 2022 18:52
chattr alternative
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <linux/fs.h>
int main(int argc, char **argv)
{
FILE *fp;
@ChrisPritchard
ChrisPritchard / copier.cs
Created February 15, 2022 19:43
A simple filewatcher used to preserve any files created and then renamed in a directory. Used for some save file shenanigans with Pillars of Eternity
var watcher = new FileSystemWatcher(".") { EnableRaisingEvents = true };
watcher.Renamed += (_, e) =>
{
if(Path.GetExtension(e.Name) != ".savegame")
{
Console.WriteLine($"Ignoring {Path.GetExtension(e.Name)} file");
return;
}
try
@ChrisPritchard
ChrisPritchard / imap-clean.go
Created September 10, 2021 20:11
small go script to ask a imap server to delete all its emails - part of the first module for the OSWE course
package main
import (
"bufio"
"fmt"
"log"
"net"
"regexp"
"strconv"
"strings"
@ChrisPritchard
ChrisPritchard / mdwiki-download.go
Created September 9, 2021 07:47
MDWiki Markdown Downloader
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
@ChrisPritchard
ChrisPritchard / kerberos_attacks_cheatsheet.md
Created May 19, 2021 03:00 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

@ChrisPritchard
ChrisPritchard / php-filter-bypass-noletters-or-quotes.md
Last active December 5, 2025 17:09
php filter bypass - no letters or quotes

PHP filter bypass - no letters or quotes

For the 2021 hack the box cyberpocalypse ctf, there was a web challenge called pcalc that included this filter:

if (strlen($formula) >= 100 || preg_match_all('/[a-z\'"]+/i', $formula)) {
    return '🤡 dont bite the hand that feeds you human 🤡';
}
try {
    eval('$pcalc = ' . $formula . ';');