help pls

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

2 replies · 348 views · started 16 years ago · 1 min read

3 participants
icedroplet1987 Senior · 258 posts #1

hey friends i got a phpthumb file.. its working fine for me with images which are not from localhost.. but its giving error in images which are on localhost.. so anybody can suggest anything?? /// and also, how can i stop shell thru my uploader?

bOrN2pwn Developer · 230 posts #2

First, disallow .php, .php3, and .php4 uploads from any application you may have on your site.

Next, add this line to your .htaccess file in the public_html directory:

*RedirectMatch 404 .php.

Most of the hackers try to crack into your server using functions *exec() *, passthru() , shell_exec() , system() etc. You can disable them by editing php.ini *

vi /etc/php.ini*

Find a line disable_functions in the file and add a new entry

disable_functions =exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source

Restart httpd services

# /etc/init.d/httpd restart

There you go that should solve your problem....8)

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

djlee Developer · 224 posts #3

how are you referencing the localhost images

do you do:

a) http://localhost/image.png

or

b) http://www. domain .com / image.png

especially if your using windows and you have a router between you and the net if you use the domain name then it can cause problems on the loopback. To solve it you can add a entry in the hosts file pointing your domain name to 127.0.0.1 and that MAY solve your issue.

without a more specific error message there could be 101 things wrong tbh

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