Skip to content

Instantly share code, notes, and snippets.

View mainframed's full-sized avatar

Soldier of FORTRAN mainframed

View GitHub Profile
for i in `strings "//'user01.jcllib'"`
do
echo "$i ======"
cat "//'user01.jcllib($i)'"|grep pass
done
/* REXX */
/* Simple HTTP REXX CURL */
/* Usage: HTTPR 'URL' or HTTPR '-O DATASET URL' */
/* Arguments: -O output to a file */
/* URL site to get */
/* By default the script will display the contents of the URL to the screen */
/* Cribbed from: */
/* https://groups.google.com/forum/#!topic/bit.listserv.tsorexx/lk74hblwn3U */
/* Copyright Soldier of FORTRAN */
/* trace i */
#!/bin/bash
# This output goes in to <whatever>.VTAMLST(A0TCP)
echo "[+] Creating 00 through 99 LUs for" $1
STRLENGTH=`echo -n $1 | wc -m`
if [ "$STRLENGTH" -ne "6" ] ; then
echo "[!] The name you entered ($1) not long enough."
echo "[!] Must be 6 characters long"
exit
fi
//SKELLY JOB (ASSY),'SKELLY',CLASS=A,MSGCLASS=Y, 00010000
// NOTIFY=&SYSUID,MSGLEVEL=(1,1) 00020000
//ASM EXEC PROC=HLASMCL 00030000
//SYSIN DD * 00040000
CLR70 TITLE 'C L E A R - TSO' 00050000
PRINT ON,DATA,GEN 00060000
CLEAR CSECT 00080000
* SETUP registers and save areas thanks @bigendiansmalls * 00110000
MAIN STM 14,12,12(13) # Save caller reg 00140000
LR 8,15 # Base register 00150000
@mainframed
mainframed / tso_applid.sh
Created August 27, 2018 20:01
Add TSO applids
#!/bin/bash
for i in {11..99}; do
echo "A06TSO$i APPL AUTH=(NOACQ,NOBLOCK,PASS,NOTCAM,NVPACE,TSO,NOPO), X"
echo " EAS=1,ACBNAME=TSO00$i "
echo "*"
done
@mainframed
mainframed / ECHO.RX
Created October 16, 2018 01:15
Echo a socket
/* REXX */
/* Change port to user number */
/* i.e. EVIL21 set port to 55521 */
p = '46290'
mf_ip = '0.0.0.0'
n = "25"x
txt = ''
r = "READY"||n
s = SOCKET('INITIALIZE','DAEMON',2)
s = SOCKET('SOCKET')
!Add this to your x3270 profile in your home folder (~/.x3270pro)
x3270.model: 2
! First we set the color scheme to the name demo
x3270.colorScheme: demo
! Then we set the colors we need
! These colors were picked for the class
x3270.colorScheme.demo: \
black midnightBlue darkred brown \
darkGreen midnightblue darkgoldenrod black \
black midnightblue SaddleBrown purple \
@mainframed
mainframed / protall.clist
Created October 27, 2018 05:27
CLIST Example for KDE Developers (Protects all user accounts)
PROC 2 USER TOTAL
CONTROL NOCAPS
WRITE *** Protecting users &USER 1 to &USER &TOTAL
DO &COUNT = 1 TO &TOTAL
ALU &USER&COUNT NOPASS
END
WRITE *** DONE
//RACROUTE JOB (ACCT),
// ' ',
// CLASS=A,
// MSGCLASS=X,
// MSGLEVEL=(1,1),
// REGION=0M,
// NOTIFY=&SYSUID
//*
//* From David Spiegel 2016
//*
//<USERID> JOB (ACCT),
// ' ',
// CLASS=A,
// MSGCLASS=X,
// MSGLEVEL=(1,1),
// REGION=0M
//UNIXCMD EXEC PGM=BPXBATCH,REGION=800M
//STDPARM DD *
SH find . -type f -exec ls -s {} \; > /tmp/t
/*