vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Need Help about hacking (https://vborg.vbsupport.ru/showthread.php?t=323056)

RichieBoy67 07-23-2016 06:34 AM

Exactly. :)

kerrghann 07-30-2016 04:47 PM

I use this piece of PHP code to find base64 and other uglies that might have been injected or placed on my server.

Note: This will not look through your hooks, this looks through all the PHP files on your server.

It'll most likely bring up a large list, so I recommend skimming through the list and finding anything that mentions base64_decode()

Then open up that file and find the base64 string in it and decode it yourself with an online decoder or using the php base64_decode($string)

Place this in your forum root and then navigate to it ( http://www.yourforumhere.com/base64-check.php
best of luck:

base64-check.php
PHP Code:

<html><head><title>Find String</title></head><body>
<?php
find_files
('.');
function 
find_files($seed)
{
if(! 
is_dir($seed)) return false;
$files = array();
$dirs = array($seed);
while(
NULL !== ($dir array_pop($dirs)))
{
if(
$dh opendir($dir))
{
while( 
false !== ($file readdir($dh)))
{
if(
$file == '.' || $file == '..') continue;
$path $dir '/' $file;
if(
is_dir($path)) { $dirs[] = $path; }
else { if(
preg_match('/^.*\.(php[\d]?|js|txt)$/i'$path)) { check_files($path); }}
}
closedir($dh);
}}} function 
check_files($this_file)
{
$str_to_find[]='base64_decode';
$str_to_find[]='edoced_46esab';
$str_to_find[]='preg_replace';
$str_to_find[]='HTTP_REFERER';
$str_to_find[]='HTTP_USER_AGENT';
$str_to_find[]='assert('$str_to_find[]='create_function('$str_to_find[]='$_REQUEST['; if(!($content file_get_contents($this_file)))
{ echo(
"<p>Could not check $this_file You should check the contents manually!</p>\n"); }
else
{
while(list(,
$value)=each($str_to_find))
{
if (
stripos($content$value) !== false)
{
echo(
"<p>$this_file -> contains $value</p>\n");
}
}
}
unset(
$content);
}
?>
</body></html>



All times are GMT. The time now is 08:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01034 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete