Skip to content

Instantly share code, notes, and snippets.

View garthhumphreys's full-sized avatar
🎯
Focusing

Garth Humphreys garthhumphreys

🎯
Focusing
View GitHub Profile
@garthhumphreys
garthhumphreys / install-codeql.sh
Created June 9, 2023 16:53 — forked from crashGoBoom/install-codeql.sh
Install codeql for MacOS (BigSur)
#!/bin/bash
# Check for latest release: https://github.com/github/codeql-cli-binaries/releases
_version='v2.4.1'
_arch='osx'
_zip_url="https://github.com/github/codeql-cli-binaries/releases/download/${_version}/codeql-${_arch}64.zip"
_dir='codeql-home'
_cores=2
pushd "${HOME}" || exit
@crashGoBoom
crashGoBoom / install-codeql.sh
Last active July 6, 2024 17:18
Install codeql for MacOS (BigSur)
#!/bin/bash
# Check for latest release: https://github.com/github/codeql-cli-binaries/releases
_version='v2.4.1'
_arch='osx'
_zip_url="https://github.com/github/codeql-cli-binaries/releases/download/${_version}/codeql-${_arch}64.zip"
_dir='codeql-home'
_cores=2
pushd "${HOME}" || exit
@0x240x23elu
0x240x23elu / SAPwordlists.txt
Created November 22, 2020 05:47
SAP Wordlist - SAP fuzz
/admin/admin.js
/admin/appinfo.jsp
/admin/cache_stats.jsp
/admin/catalogcache.jsp
/admin/ccms/customizing.jsp
/admin/ccms/result.jsp
/admin/ccms/sendFailure.jsp
/ecall/jsp/customer/login/login.jsp
/ecall/jsp/customer/upload/upload.jsp
/user/admin/index.jsp
@smolinari
smolinari / content-hooks.js
Created April 28, 2020 12:11
The Quasar Todo example browser extension content hook file.
const
iFrame = document.createElement('iframe'),
defaultFrameHeight = '0px',
defaultFrameWidth = '0px'
/**
* Set the height of our iFrame housing our BEX
* @param height
*/
const setIFrameDimensions = (height, width) => {
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive;
echo "[*] Starting Install... [*]"
echo "[*] Upgrade installed packages to latest [*]"
echo -e "\nRunning a package upgrade...\n"
apt-get -qq update && apt-get -qq dist-upgrade -y
apt full-upgrade -y
apt-get autoclean
echo "[*] Install stuff I use all the time [*]"
@jamieparfet
jamieparfet / macOS-mojave-iso.sh
Last active February 11, 2023 19:16
Create an ISO from the mojave installer app
#!/bin/bash
# This assumes that the ~6GB mojave installer is in the /Applications folder.
# If it's not, just open the App Store, search Mojave, and you can download the installer file from there.
hdiutil create -o /tmp/mojave.cdr -size 6g -layout SPUD -fs HFS+J
hdiutil attach /tmp/mojave.cdr.dmg -noverify -mountpoint /Volumes/install_mojave
sudo /Applications/Install\ macOS\ mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_mojave
mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil detach /Volumes/Install\ macOS\ mojave
@tomnomnom
tomnomnom / alert.js
Last active June 1, 2024 15:07
Ways to alert(document.domain)
// How many ways can you alert(document.domain)?
// Comment with more ways and I'll add them :)
// I already know about the JSFuck way, but it's too long to add (:
// Direct invocation
alert(document.domain);
(alert)(document.domain);
al\u0065rt(document.domain);
al\u{65}rt(document.domain);
window['alert'](document.domain);
@garthhumphreys
garthhumphreys / gist:17d6a1809b6f57be6b5a
Created January 20, 2016 08:49 — forked from blanc0/gist:65a0c4f3dc148c66ad38
PhantomJS + Selenium Testing
'''
You'll need to install npm, nodejs and phantomjs
$ apt-get install nodejs nodejs-dev npm phantomjs
$ pip install selenium-python
'''
@leommoore
leommoore / file_magic_numbers.md
Last active July 8, 2024 13:08
File Magic Numbers

File Magic Numbers

Magic numbers are the first bits of a file which uniquely identify the type of file. This makes programming easier because complicated file structures need not be searched in order to identify the file type.

For example, a jpeg file starts with ffd8 ffe0 0010 4a46 4946 0001 0101 0047 ......JFIF.....G ffd8 shows that it's a JPEG file, and ffe0 identify a JFIF type structure. There is an ascii encoding of "JFIF" which comes after a length code, but that is not necessary in order to identify the file. The first 4 bytes do that uniquely.

This gives an ongoing list of file-type magic numbers.

Image Files

@blanc0
blanc0 / gist:65a0c4f3dc148c66ad38
Last active January 20, 2016 08:49
PhantomJS + Selenium Testing
'''
You'll need to install npm, nodejs and phantomjs
$ apt-get install nodejs nodejs-dev npm phantomjs
$ pip install selenium-python
'''