| | |
php decode hacked my sites. Is it Virus
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 6
Reputation:
Solved Threads: 0
I Found a problem on my site and when i compare the files on the server with my local files i found that every page (*.js or *.php) has this line on it
<?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKC
or a javascript line
so i knew that my site has been hacked..
so
1 - i want to know how to prevent anyone to hack my site?
i made on every textfield or textarea on posting or getting it the htmlspecialcharacter($_POST['name'])
is this true? and can it help me?
2- how did anyone hack my site??
3- how i can know what does this code mean???
Help me please.
<?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKC
or a javascript line
so i knew that my site has been hacked..
so
1 - i want to know how to prevent anyone to hack my site?
i made on every textfield or textarea on posting or getting it the htmlspecialcharacter($_POST['name'])
is this true? and can it help me?
2- how did anyone hack my site??
3- how i can know what does this code mean???
Help me please.
LOOKING FOR FREE UNLIMITED DOMAIN?FIND HERE:
0
#2 14 Days Ago
Hey.
The htmlspecialchar function is meant to be used when printing unsafe data to a HTML page.
It doesn't protect you if you use the data for other things, such as SQL queries or shell scripts.
Hard to tell. Especially since we know absolutely nothing about your website.
Most likely suspects: This just prints the command that the
•
•
•
•
1 - i want to know how to prevent anyone to hack my site?
i made on every textfield or textarea on posting or getting it the htmlspecialcharacter($_POST['name'])
is this true? and can it help me?
It doesn't protect you if you use the data for other things, such as SQL queries or shell scripts.
•
•
•
•
2- how did anyone hack my site??
Most likely suspects:
- Your FTP info was stolen from a PC you were working on.
Developers often use FTP applications that store login details for them so they don't have to type it in every single time.
Some viruses target such applications, giving the attacker access to your FTP server.
(Please note that these sort of viruses are designed to be invisible. And yes, you can have one. Doesn't matter how protected you think you are.) - Dynamic includes/SQL/eval/shell scripts. All of these can be used to gain unautorized access to your server if they are created using unsafe data. A common newbie mistake is to add un-escaped user input into SQL queries, which allows a hacker to alter the command via your own web-form.
(See SQL Injection) - Broken file upload scripts, which allow malicious users to upload scripts onto your site. Always take care to limit file uploads to know types, or a malicious user could just upload a PHP file and execute it via a normal web-request.
•
•
•
•
3- how i can know what does this code mean???
php Syntax (Toggle Plain Text)
<?php echo base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKC'); ?>
eval() call you posted is supposed to execute. Please do not ask for help in a PM. Use the forums.
And use [code] tags!
And use [code] tags!
![]() |
Similar Threads
- PHP & Apache Server Security Questions (PHP)
- PHP where can download PHP sample sites (PHP)
- News Story: Joe Jobbing PHP Viagra Spammers (Network Security)
- PHP vs ASP... the big ShOwdOwN (IT Professionals' Lounge)
- What happens when you lost everything? start again? (Growing an Online Community)
- keyword tags of web sites (HTML and CSS)
- Trojan-Spy.HTML.Smitfraud.c (Viruses, Spyware and other Nasties)
- Help my virus problems with logs and evidence (Viruses, Spyware and other Nasties)
- PHP Include ... Quote quirk (PHP)
Other Threads in the PHP Forum
- Previous Thread: Paypal is sending message invalid or bad order ??
- Next Thread: Make HTML page through PHP script
| Thread Tools | Search this Thread |
access ajax api apple array basic battery beginner blogger blogging bug c# class cms code combo conficker curl daniweb data database development display dropdownlist email energy error file files flash form forms game gdata gmail google hack hardware html image images include iphone ipod java javascript joomla jquery kaspersky key link linux login mail malware menu microsoft mobile module multiple mysql net news onecare oop password php police post problem program programming query reuse rss satnav science script search security sms software source spam sql sqlinjection technology trends trojan upload video virus vista web website windows worm xml youtube zend






