This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| LTPA Token Generator - Generates IBM WebSphere LTPA v1 and LTPA2 tokens | |
| Based on analysis of IBM LTPA token format and cryptographic implementation. | |
| References: | |
| - http://tech.srij.it/2012/04/how-to-decrypt-ltpa-cookie-and-view.html | |
| - IBM WebSphere LTPA documentation | |
| - WebSphere {xor} password decoder by Jeroen Zomer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base64 | |
| def decode_was_xor(xor_string): | |
| if not xor_string.lower().startswith("{xor}"): | |
| raise ValueError("Not a WebSphere {xor} string") | |
| xor_data = xor_string[5:] # Remove {xor} prefix | |
| # Base64 decode | |
| decoded_bytes = base64.b64decode(xor_data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| REMOTE_USER="user" | |
| REMOTE_HOST="hostname" | |
| REMOTE_PASSWORD="password" | |
| LOCAL_DIR="." | |
| while read remote_file; do | |
| # Remove leading slash from the path | |
| local_path="${remote_file#/}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Store password securely (file with 600 permissions) | |
| # echo "yourpassword" > ~/.ssh/z_pass | |
| # chmod 600 ~/.ssh/z_pass | |
| PASSWORD=$(cat ~/.ssh/z_pass) | |
| # List of LPARs | |
| LPARS=("lpar1" "lpar2" "lpar3") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //* The next are lines JCL to create a temp dataset (&&OMG) with | |
| //* a member (REXX). The file then looks like &&OMG(REXX). | |
| //* The end of the REXX file is noted as single line with ## on it | |
| //* The program IEBGENER copies all that data to the temp file | |
| //CREATOMG EXEC PGM=IEBGENER | |
| //SYSPRINT DD SYSOUT=* | |
| //SYSIN DD DUMMY | |
| //SYSUT2 DD DSN=&&OMG(DOIT),UNIT=SYSDA, | |
| // DISP=(NEW,PASS,DELETE), | |
| // SPACE=(TRK,(1,1,1)), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep open *.nmap | grep tn3270 | sed -E ' | |
| /ssl\/tn3270/ { | |
| s/.*\.([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\.nmap:([0-9]+)\/.*/L:\1:\2/ | |
| b | |
| } | |
| s/.*\.([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\.nmap:([0-9]+)\/.*/\1:\2/ | |
| ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -x | |
| /bin/tsocmd "TSS LIST(SDT) CERTMAP(ALL)" > 01_certmap.txt | |
| /bin/tsocmd "TSS LIST(ACIDS) DATA(ADMIN, BASIC)" > 02_acids_admin-basic.txt | |
| /bin/tsocmd "TSS LIST(ACIDS) DATA(BASIC)" > 03_acids_basic.txt | |
| /bin/tsocmd "TSS MODIFY STATUS" > 04_modify_status.txt | |
| /bin/tsocmd "TSS WHOHAS OPERCMDS(MVS)" > 05_opercmds_mvs.txt | |
| /bin/tsocmd "TSS WHOHAS DSN(SYS1.PARMLIB)" > 06_whohas_sys1.parmlib.txt | |
| /bin/tsocmd "TSS WHOHAS DSN(SYS1.LINKLIB)" > 07_whohas_sys1.linklib.txt | |
| /bin/tsocmd "TSS WHOHAS DSN(SYS1.SVCLIB)" > 08_whohas_sys1.svclib.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //NETSPI JOB (NETSPI),'NETSPI',CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID | |
| //TSOTSS EXEC PGM=IKJEFT01 | |
| //SYSTSPRT DD SYSOUT=* | |
| //SYSTSIN DD * | |
| TSS LIST(ACIDS) TYPE(SCA) | |
| TSS LIST(ACIDS) DATA(ADMIN) | |
| TSS WHOHAS FACILITY(APPC) | |
| TSS LIST(RESOURCES) TYPE(ACTION) MASK(NODSN) | |
| TSS LIST(RESOURCES) TYPE(ACTION) MASK(EXIT) | |
| TSS MODIFY(MSUSPEND) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //PHILCATJ JOB (JOB),'CATMAP3J',CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID | |
| //* | |
| // EXPORT SYMLIST=* | |
| // SET LOADMOD=APFCHECK | |
| // SET LOADLIB=FOO.LOAD.LIB | |
| //* | |
| //ASM EXEC PGM=ASMA90,PARM='NODECK,XREF(SHORT)' | |
| //SYSLIB DD DSN=SYS1.MACLIB,DISP=SHR | |
| //SYSUT1 DD UNIT=SYSDA,SPACE=(TRK,(50,10)) | |
| //SYSUT2 DD UNIT=SYSDA,SPACE=(TRK,(50,10)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* REXX */ | |
| parse arg len | |
| SAY "LISTUSER RACF User Enumeration Tool" | |
| SAY "VER 1" | |
| /* License: GPLv3 */ | |
| ALPHANUM = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789' | |
| DO I=1 to 36 | |
| S1 = RIGHT(LEFT(ALPHANUM,I),1) | |
| DO J=1 to 36 |
NewerOlder