Skip to content

Commit

Permalink
Update server
Browse files Browse the repository at this point in the history
  • Loading branch information
irsdl authored Nov 1, 2020
1 parent bc2c764 commit 0c6a1a7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions server
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@

<p>
please run:<br>
<?php $port = @$_GET['port'] ? $_GET['port'] : 3306 ?>
<code>echo something here | (nc -vl <? echo $port ?> || nc -vvlp <? echo $port ?>)</code><p>
<?php
$port = @$_GET['port'] ? $_GET['port'] : 3306;
$port = preg_replace("/[^0-9]/", "", $port); // to fix the xss issue
?>
<code>echo something here | (nc -vl <?php echo $port; ?> || nc -vvlp <?php echo $port; ?>)</code><p>
then hit the button below<br>
<form name=woot>Port: <input id=port type=text name=port value=<? echo $port ?>>
<form name=woot>Port: <input id=port type=text name=port value=<?php echo $port; ?>>
&nbsp; <input type=button id=button value="please wait" disabled onClick="natpin()"><p>
</form>
<hr>
Expand Down

0 comments on commit 0c6a1a7

Please sign in to comment.