r57 shell script

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

31 replies · 3,866 views · started 17 years ago · 1 min read

11 participants
ewanz Developer · 187 posts #1

The shell script allows someone to access your operating system to list, create and remove files and directories as well as execute code on your server. how to prevent it?8)

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
subzero Super moderator Fellow · 3,954 posts #2

dont host a uploader......

or

rename file and let MySql name it

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

ewanz Developer · 187 posts #3

but what about the site that use lavalair script.. there must be uploader on it.. any tips for it?

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
subzero Super moderator Fellow · 3,954 posts #4

when i got time i will code my uploader for lavalair this will be in xhtml

also it be icecube coded

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

ewanz Developer · 187 posts #5

thanks zero... i also use the url for user avatar.. Is it safety?

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
subzero Super moderator Fellow · 3,954 posts #6

edit your bbcode to this

$text = preg_replace("/[img=(.?)](.?)[/img]/is","<img src="thumb.php?pic=$1&w_max=50&h_max=50" alt="$2"/>",$text);

$text=preg_replace("/[img](.*?)[/img]/i","<img src="thumb.php?pic=$1&w_max=50&h_max=50" alt="FAST IMAGE"/>", $text);

Make page called

thumb.php

<?php 
$pic = $_GET['pic'];

$taille = getimagesize("$pic");  
$h_i = $taille[1];  
$w_i = $taille[0];  
if($h_i >$h_max)  
{  
$convert=$h_max/$h_i;  
$h_i=$h_max;  
$w_i=ceil($w_i*$convert);  
}  
if($w_i >$w_max)  
{  
$convert=$w_max/$w_i;  
$w_i=$w_max;  
$h_i=ceil($h_i*$convert);  
};  

$largeur = "$w_i"; 
$hauteur ="$h_i"; 

header("Content-Type: image/jpeg"); 
list($width, $height, $type, $attr) = getimagesize("$pic"); 

if($type == "1") 
{ 
$img_in = imagecreatefromgif($pic); 
} 

if($type == "2") 
{ 
$img_in = imagecreatefromjpeg($pic); 
} 

if($type == "3") 
{ 
$img_in = imagecreatefrompng($pic); 
} 

$img_out = imagecreatetruecolor($largeur, $hauteur); 
imagecopyresampled($img_out, $img_in, 0, 0, 0, 0, imagesx($img_out), imagesy($img_out), imagesx($img_in), imagesy($img_in)); 
$t = imagejpeg($img_out); 
echo $t; 
?>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

ewanz Developer · 187 posts #7

okay i'll try... what the usage of that file? i mean how to use that.. i just put in web folder..is it right?

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
subzero Super moderator Fellow · 3,954 posts #8

in main folder.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

ewanz Developer · 187 posts #9

i had put in public html/thump.php.. then what must i do?

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
ewanz Developer · 187 posts #10

i understand.. now <img src="thumb.php?pic=$1&w_max=50&h_max=50" alt="FAST IMAGE"/> insert to avatar...

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
subzero Super moderator Fellow · 3,954 posts #11

Yes that right

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

ewanz Developer · 187 posts #12

i start to make it now.. thanks zero 🙂

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
riderz Lead · 975 posts #13

my lava edit that i have aer secure for uploader ozziemale have posted a code to put in ur uploader folders so it make it more secure


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

godzilla Developer · 119 posts #14

where is that code?i tried search button but could not find it?

ewanz Developer · 187 posts #15

yeah...give the link.. it could be hard to search..

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
djdevil89 Senior · 287 posts #16

ewanz wrote: yeah...give the link.. it could be hard to search..

lol a lil "please" could be usefull sometimes 🙂

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
ewanz Developer · 187 posts #17

DjMatrix wrote: lol a lil "please" could be usefull sometimes :)

what do you mean lol?8)

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
kiLLeR-eyEd_14 Senior · 382 posts #18

This is what ozi posted..Make an htaccess file in the upload directory and put this:

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
<Files images>
deny from all
</Files>
<Files *.php>
deny from all
</Files>
<Files *.php.*>
deny from all
</Files>
<Files *.php.php.*>
deny from all
</Files>

this file ignores any file uploaded with a .php in filename or extension..In my site, aside from that thing..i also made my uploader more secure to be m0re sure and so that hackers go crazy..

amylee Principal · 1,092 posts #19

thats useless, i can execute a phpshell with a sisx, nth, thm extentions with a few modifications to firefox's mime types as long as the extention is executable the shell can be run unless stopped by a properly configured webserver and not just solely relying on htaccess rules

xola Newbie · 6 posts #20

amylee wrote: thats useless, i can execute a phpshell with a sisx, nth, thm extentions with a few modifications to firefox's mime types as long as the extention is executable the shell can be run unless stopped by a properly configured webserver and not just solely relying on htaccess rules

okay and what is the best configuration to stop the excution of the phpshell that we may look out for in a webserver??

this is XOLA

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close