DC619 Training LPAR
The file DC619 - Mainframe Overflows Hands On.pdf
contains the labs and walks through how to perform them.
Use docker
You can use docker instead of building from scratch: https://hub.docker.com/r/mainframed767/mvsce_dc619
Building from scratch
- Download the most recent version of MVSCE from https://github.com/MVS-sysgen/sysgen/releases
- Launch MVSCE
- Install Review Front end:
- Logon to MVSCE
- At the TSO ready prompt:
RX MVP INSTALL REVIEW
- Submit the job
logon_screen.JCL
:cat logon_screen.JCL|ncat --send-only -w1 127.0.0.1 3505
- Submit the job
motd.jcl
:cat motd.jcl|ncat --send-only -w1 127.0.0.1 3505
- Submit the job
terminal.jcl
:cat terminal.jcl|ncat --send-only -w1 127.0.0.1 3505
- Submit the job
make_staging.jcl
:cat make_staging.jcl|ncat --send-only -w1 127.0.0.1 3505
- Using
RFE
in TSO editSYS1.VTAMLST(ATCCON00)
and replaceLCL400
withDC619T
- Edit
SYS1.PARMLIB
members:IEASYS00
and changeMAXUSERS
to32
IKJTSO00
and changeUSERMAX
to32
- Install
https://github.com/mvslovers/rdrprep
on your Linux box - Clone
https://github.com/mvslovers/jcc
to this folder - Compile
hello.c
:./jcc/jcc -I./jcc/include -o hello.c
./jcc/prelink -s ./jcc/objs hello.load hello.obj
- Copy
hello.load
to users:cp hello.load users
- Run usersjcl.py:
python3 usersjcl.py
- Convert each job in the users folder with
rdrprep
and submit them one by one:for i in *.jcl; do echo $i;rdrprep $i;cat reader.jcl|ncat --send-only -w1 172.17.0.3 3506; read; done
- You can check the output of MVSCE
printers/prt00e.txt
to see each job completed
- Shutdown MVS/CE
- Re-IPL MVS/CE and enjoy your lab environment
Files
hello.c
vulnerable C program from https://github.com/jake-mainframe/GETSPLOIT- EBCDIC files
LGBT400
,LOC400
andWTO400
Dockerfile
used to build docker image from the contents for./dasd
:https://github.com/jake-mainframe/GETSPLOIT
logon_screen.ans
/logon_screen.JCL
: ANSI/JCL to replace the NETSOL logon screenmotd.jcl
replaces the TSO logon clistterminal.jcl
adds 32 new terminal interfaces and updates VTAM configusersjcl.py
createsDC00.jcl
throughDC29.jcl
in the./users
folder