403Webshell
Server IP : 23.94.149.180  /  Your IP : 216.73.216.147
Web Server : nginx/1.20.1
System : Linux deadrock 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 15:18:14 UTC 2026 x86_64
User : nginx ( 991)
PHP Version : 8.6.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /files/www/hacklab/phpfwgen/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /files/www/hacklab/phpfwgen/portfwd.php3
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
<HTML>

<HEAD>
<TITLE>Port Forwarding Rules</TITLE>
<?php

#############################################################################
#
# $Id: portfwd.php3,v 1.9 2000/04/14 04:17:03 delson Exp $
#
# Script to view port forwarding rules.
#
# (C) Del under the GPL.
#
#############################################################################

require ('config.inc');
require ('files.inc');

$protocols = read_protocols();
$services = read_services();
$netobjects = read_objects();
$portfwds = read_portfwds();

require ('utility.inc');
require ('submit.inc');
require ('javascript.inc');

?>
</HEAD>

<BODY BGCOLOR="#FFFFFF">

<SCRIPT LANGUAGE="JavaScript">
<!-- hide from JavaScript-challenged browsers
  reloadScript();
// done hiding -->
</SCRIPT>

<TABLE WIDTH="99%" BORDER=0 BGCOLOR="#EEEEEE" CELLSPACING=2 CELLPADDING=4>
  <TR ALIGN=LEFT VALIGN=TOP>
    <TD BGCOLOR=#339933><FONT SIZE=+1 COLOR=WHITE><B>Port Forwarding Rules</B></FONT></TD>
  </TR>
  <TR ALIGN=LEFT VALIGN=TOP>
    <TD>
<A HREF="javascript:showHelp('help-portfwd.html');"><IMG SRC="help.gif" ALT="Help" ALIGN=RIGHT BORDER=0></A>
    Enter your port forwarding rules here.
    <A HREF="javascript:editPortfwd(0);">Click here to add a new port
    forwarding rule.</A>
    <P></TD>

  </TR>
</TABLE>

<TABLE WIDTH="99%" BORDER=0 BGCOLOR="#EEEEEE" CELLSPACING=2 CELLPADDING=4>
  <TR ALIGN=LEFT VALIGN=TOP>
    <TD><B>Rule Number</B></TD>
    <TD><B>Protocol</B></TD>
    <TD><B>From</B></TD>
    <TD><B>From Port</B></TD>
    <TD><B>Destination</B></TD>
    <TD><B>Destination Port</B></TD>
    <TD><B>Edit</B></TD>
    <TD><B>Delete</B></TD>
  </TR>

<?php

#
# Print all of the port forwarding rules.
#
function print_portfwd ($key, $rule) {
  list ($proto, $source, $sport, $dest, $dport) = preg_split ("/[\s]+/", $rule);
  print "<TR ALIGN=LEFT VALIGN=TOP>";
  print "<TD>$key</TD>";
  $fs = service_colour("$sport/$proto");
  print "<TD>$fs$proto</FONT></TD>";
  print "<TD>$source</TD>";
  print "<TD>$fs$sport</FONT></TD>";
  print "<TD>$dest</TD>";
  $fs = service_colour("$dport/$proto");
  print "<TD>$fs$dport</FONT></TD>";
  print "<TD>";
  print "<A HREF=\"javascript:editPortfwd($key);\"><IMG SRC=mini-edit.gif BORDER=0></A>";
  print "</TD>";
  print "<TD>";
  print "<FORM NAME=\"rmportfwd$key\" METHOD=\"POST\" ACTION=\"portfwd.php3\">";
  print "<INPUT TYPE=\"HIDDEN\" NAME=\"delportfwd\" VALUE=\"y\">";
  print "<INPUT TYPE=\"HIDDEN\" NAME=\"portfwdkey\" VALUE=\"$key\">";
  print "<A HREF=\"javascript:confirmDeletePortfwd(this.document.rmportfwd$key);\"><IMG SRC=mini-cross.gif BORDER=0></A>";
  print "</FORM>";
  print "</TD>";
  print "</TR>\n";
}

if (is_array($portfwds)) {
  reset($portfwds);
  while ( list($key,$val) = each($portfwds) ) {
    print_portfwd ($key, $val);
  }
}

?>

</TABLE>

<TABLE WIDTH="99%" BORDER=0 BGCOLOR="#EEEEEE" CELLSPACING=2 CELLPADDING=4>
  <TR ALIGN=LEFT VALIGN=TOP>
    <TD>
    <A HREF="javascript:editPortfwd(0);">Click here to add a new port
    forwarding rule.</A>
    </TD>
  </TR>
</TABLE>

</BODY>
</HTML>

Youez - 2016 - github.com/yon3zu
LinuXploit