Skip to content

Instantly share code, notes, and snippets.

View thomashartm's full-sized avatar

Thomas Hartmann thomashartm

View GitHub Profile
/admin
/system/console
/dav/crx.default
/crx
/bin/crxde/logs
/jcr:system/jcr:versionStorage.json
/_jcr_system/_jcr_versionStorage.json
/libs/wcm/core/content/siteadmin.html
/libs/collab/core/content/admin.html
/libs/cq/ui/content/dumplibs.html
@thomashartm
thomashartm / find-snapshots.sh
Created June 19, 2019 09:08
Find snapshot version in a pom
#!/bin/bash
for i in $(grep '<version>' pom.xml); do
version=${i%<*};
version=${version#*>};
if [[ $version == *"SNAPSHOT"* ]]
then
echo "$version";
fi
done
@thomashartm
thomashartm / git-cheatsheet.txt
Last active March 24, 2020 09:07
Git commonly used commands cheatsheet
########################
# fetches all branches and commits from remote in this case origin
git fetch origin
########################
# show local branches
git branch
# shows alsp remote branches
git branch -r
@thomashartm
thomashartm / burp-intruder-aem-dispatcher-bypass.txt
Last active August 9, 2021 06:03
Burp Intruder payload lists for AEM content grabbing URL suffixes to bypass dispatcher rules. Just copy the list into your intruder options.
.json
.1.json
.json/a.css
.json/a.html
.json/a.ico
.json/a.png
.json/a.gif
.json/a.1.json
.json;%0aa.css
.json;%0aa.html
@thomashartm
thomashartm / Search for param
Created June 5, 2019 06:37
Searches for an IP in archived and gzipped log files and splits by whitespace and shows the first 3 elements
#!/bin/bash
zgrep -e "127.0.0.1" archive/access.log* | grep ".html" | cut -d' ' -f1,3,2
@thomashartm
thomashartm / maven_package_exec_fat_jar.txt
Created June 1, 2019 18:27
Packaging an executable fat JAR with Apache Maven
Three ways to create an executable and fat JAR with Maven :
maven-jar-plugin (it doesn't add dependencies inside the final JAR, they have to be in the classpath)
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
@thomashartm
thomashartm / bash-cheatsheet.sh
Created May 21, 2019 20:37 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
# Based on https://jenkins.io/doc/book/installing/
# Download the container and start it
docker run -u root --rm -d -p 8080:8080 -p 50000:50000 -v ${HOME}/projects/jenkins/home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean
# View the logs
docker logs jenkinsci/blueocean
#Open a shell
docker exec -it jenkinsci/blueocean bash
@thomashartm
thomashartm / DebugBurpSuite
Last active January 22, 2023 03:05
Debug Burp Suite for Burp Extension Development
cd /Applications/Burp Suite Professional.app/Contents/java/app
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar burpsuite_pro.jar
@thomashartm
thomashartm / export-jenkins-plugins.sh
Created May 7, 2018 08:45
Reads the jenkins plugins installed on an existing instance and exports the shortnames
#!/bin/bash
####################################
# Reads the jenkins plugins installed on an existing instance and exports the shortnames
# run as follows:
# export-jenkins-plugins.sh <server-adress> <username>
# e.g.
# export-jenkins-plugins.sh localhost:8080 admin
# This command requires to install jq
# https://stedolan.github.io/jq/download/