SBST - Support

Need help with fSpamList? Post here! (DO NOT post removal requests here)

Moderator: fspamlist

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

SBST - Support

Postby wildman424 » Sun Jan 29, 2012 12:56 pm

Hi Steven

I have your mod installed on our site. the mod itself works beautifully, but I can't get the UI to return any results when I run a supected spammers username email address or IP.

edit: forgot the link to our UI

http://www.cyberstealthlabs.org/Check_Spammers/
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 1:00 pm

Bit strange. Does it return anything at all?
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 1:05 pm

No it doesn't return anything, the page refreshes but there's no output from the SBST
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 1:14 pm

Can you open check_spammers.php and replace;

Code: Select all

$sresult_data = $spambot.'[DATA_FOLLOWS]'.$sTD_Results;


With;

Code: Select all

echo 'DEBUG: '.$spambot.' - '.$sTD_Results;
$sresult_data = $spambot.'[DATA_FOLLOWS]'.$sTD_Results;
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 1:27 pm

Ok

this is what I have there now

Code: Select all

echo 'DEBUG: '.$spambot.' - '.$sTD_Results;
$sresult_data = $spambot.'[DATA_FOLLOWS]'.$sTD_Results;


Thanks for your help with this :)
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 1:47 pm

No problem :)
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 1:49 pm

I'm still getting the same thing, also I noticed our UI is missing the footer.
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 1:56 pm

Did the debug message return anything?

If the footer is missing, it's likely one of the functions required is missing, which is intefering with the code. The most common cause of this, is file_get_contents() being disabled and/or the counter (text file) either being missing or unreadable.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 2:01 pm

I didn't realise you'd added the URL to your OP.

Had a look and I suspect the issue is with whitelist.txt. It should be telling you if this file is missing, but doesn't appear to be (the footer is only missing from the index page, and this is the only file that could cause that as the footer is the same for all pages)
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 2:19 pm

No nothing in the way of a debug message.

the counter.txt is in there,

I made it read, write and execute for everyone still the same thing no out put

Edit:

ok
the whitelist is in there and its still blank, I haven't added anything to it yet.
I'll check the index page for the footer
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 2:23 pm

is this the footer:

Code: Select all

</tr>
<tr>
        <td align="center" class="footer" height="24px">
      Copyright &copy; <?php echo $CopyrightYear; ?> <a class="footer" href="http://hosts-file.net">MysteryFCM</a>
      &nbsp;[   <?php echo $Version_Info; ?> | <a class="footer" href="http://temerc.com/forums/viewtopic.php?f=71&amp;t=6103" title="TeMerc Internet Countermeasures - fSpamlist.com - SpamBot Search Tool (aka Querying the fSpamlist database)">Get the code!</a> |
      <a class="footer" href="<?php echo $_SERVER['SCRIPT_PATH']; ?>?p=History">Version History</a>
      <?php
         echo ' | ';
         // Do we want to get the spammer count from counter.txt, or the database?
         if($bln_SaveToDB==True){
            $s_ret = GetSpammerCount('F_DB');
         }else{
            $s_ret = GetSpammerCount('F_TEXT');
         }
         echo $s_ret.' spammers blocked';
      ?>
      ]
      <br><br>
      <a rel="license" class="footer" href="http://creativecommons.org/licenses/by-sa/2.0/uk/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/2.0/uk/80x15.png"></a><br><span xmlns:dc="http://purl.org/dc/elements/1.1/" property="dc:title">Spambot Search Tool</span> by <a class="footer" xmlns:cc="http://creativecommons.org/ns#" href="http://support.it-mate.co.uk/?mode=Products&amp;p=spambotsearchtool" property="cc:attributionName" rel="cc:attributionURL">Steven Burn</a>, <a class="footer" xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://guildwarsholland.nl/phphulp/testspambot.php" rel="dc:source">Smurf Minions</a> is licensed under a <a class="footer" rel="license" href="http://creativecommons.org/licenses/by-sa/2.0/uk/">Creative Commons Attribution-Share Alike 2.0 UK: England &amp; Wales License</a>.<br>Based on a work at <a class="footer" xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://guildwarsholland.nl/phphulp/testspambot.php" rel="dc:source">guildwarsholland.nl</a> with bug fixes courtesy of <a class="footer" xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://www.cedit.biz/joomla-extensions/18-registration-validator/22-block-disposable-email-addresses" rel="dc:source">Dan McCormick</a>.<br>Permissions beyond the scope of this license may be available at <a class="footer" xmlns:cc="http://creativecommons.org/ns#" href="http://mysteryfcm.co.uk/?mode=Contact" rel="cc:morePermissions">http://mysteryfcm.co.uk/?mode=Contact</a>.
   </td>
</tr>
</table>
</body>

edit: I noticed its inside the body tag
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 2:26 pm

It is, yes.

It shouldn't be needed, but it's the only thing I can think of if it's not the counter or whitelist causing it. Can you try adding this to the beginning of check_spammers.php please? (just after the opening PHP tag);

Code: Select all

   $sMyPath = dirname(__FILE__).'/';

   if(!file_exists($sMyPath.'config.php')==true){
      // Okay, lets try and copy the sample file
      if(file_exists($sMyPath.'config.sample.php')==true){
         if(!copy($sMyPath.'config.sample.php', './config.php')){
            die('config.php and config.sample.php are missing. Please restore these files');
         }
      }else{
         die('config.php is missing, did you forget to copy config.sample.php?');
      }
   }else{
      include($sMyPath.'config.php');
   }
   include($sMyPath."en.php");
   include($sMyPath."functions.php");
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 2:29 pm

wildman424 wrote:edit: I noticed its inside the body tag


It's supposed to be (all content for a site should be inside the opening and closing body tags)
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 2:34 pm

ok i added that code, I have this in the beginning of the check_spammer.php

Code: Select all

<?php
// **************************************************************
// File: check_spammers.php
// Purpose: Used by index.php for the web interface to perform the
//       spambot checks
// Author: MysteryFCM
// Support: http://mysteryfcm.co.uk/?mode=Contact
//       http://forum.hosts-file.net/viewforum.php?f=68
//       http://www.temerc.com/forums/viewforum.php?f=71
// Last modified: 13-09-2011
// **************************************************************

$sMyPath = dirname(__FILE__).'/';

   if(!file_exists($sMyPath.'config.php')==true){
      // Okay, lets try and copy the sample file
      if(file_exists($sMyPath.'config.sample.php')==true){
         if(!copy($sMyPath.'config.sample.php', './config.php')){
            die('config.php and config.sample.php are missing. Please restore these files');
         }
      }else{
         die('config.php is missing, did you forget to copy config.sample.php?');
      }
   }else{
      include($sMyPath.'config.php');
   }
   include($sMyPath."en.php");
   include($sMyPath."functions.php");

   // Check for whitelist.txt


still the same thing, no output

should I upload a new copy to the server and start over?
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 2:40 pm

I'd recommend it, yes.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 6:10 pm

MysteryFCM wrote:I'd recommend it, yes.

OK, done.
I downloaded a new copy from here, archived Check_Spammers (tar), uploaded it to our server & extracted it, double checked the permissions, everything can be read/written by the www-data user. I put my keys in the config.php. ran a query and still no luck. :(

I don't think I overlooked something....somewhere?? ?>!
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 6:17 pm

Can you enable debugging in PHP? To do this, in check_spammers.php, just above;

Code: Select all

   // Check for whitelist.txt


Add the following;

Code: Select all

error_reporting(E_ALL);


As the footer is working on the other pages, we know the functions it needs are there, so it's got me baffled as the index page only displays the form and footer until something is submitted.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 8:07 pm

Sorry it took so long, the server decided to kirk out a while, old piece of =+\

I added that line as you requested, Its not putting out any debugging information, that I can see.

there is a rather long thread I been using for debugging the SBST while I was setting it up. I moved that thread to a forum guest can post to if you need to us it. its available.
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 8:14 pm

Is this still occuring?

http://www.cyberstealthlabs.org/forum/v ... 1006#p1006

Can you also tell me what your logging settings are please? Defaults are;

Code: Select all

// Do you want it to create a text file with the results?
$bln_SaveToFile = FALSE;

// Do you want it to log results to a database?
$bln_SaveToDB   = FALSE;


Saving to file requires allow_url_fopen() and file_get_contents()/file_put_contents(), and saving to DB was written for MySQL (though should work with others)
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 8:55 pm

No that's not ... it happen once early after I removed the Check_Spammers directory to upload a fresh copy. I posted to another thread and got that error. After I uploaded the fresh install it went away.

I don't have it set up to do any logging I tried that once but couldn't get it to work. And didn't take the time to configure it any further, we were having a different unrelated issue occur at the time.

my settings are set to:

Code: Select all

/ Do you want it to create a text file with the results?
$bln_SaveToFile = FALSE;

// Do you want it to log results to a database?
$bln_SaveToDB   = FALSE;
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 9:18 pm

I have no ideal. I feel like I have taken up too much of your time already. Maybe you can figure it out with all my files to examine... whenever you get some freetime. No hurry I'll just do without it for now.
Thanks again for all the help, we do appreciate it. ><:

I tarballed the entire Check_Spammers directory, downloaded it and stuck it in a 7zip archive so I could put a password on it. I'll attach it to this post, and send you the password via the forum pm.


Check_Spammers.tbz.7z
Last edited by wildman424 on Fri Feb 03, 2012 9:14 pm, edited 1 time in total.
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 9:20 pm

Can you replace check_spammers.php and index.php with the ones attached please, and try re-loading the index.

Please also let me know which version of PHP your site is running (if PHP4, you may need to rename htaccess-force-PHP5.txt > .htaccess)
Attachments
check_spammers-test_files.zip
(11.61 KiB) Downloaded 188 times
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 9:23 pm

I'll do that right now,

edit:
forum pm isn't working right now. I'll email you that password.
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 9:33 pm

No problem.

Not aware of any issues with the PMs, but I'll take a look, cheers :)
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 9:40 pm

No change I'm afraid. Its PHP Version 5.3.2-1

Think I'm going to call it night.

edit:
sent the email to you at services it-mate t*u
Last edited by wildman424 on Sun Jan 29, 2012 10:06 pm, edited 1 time in total.
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 10:02 pm

No problem. I've checked the files here and they're working perfectly, which has me a little puzzled.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

User avatar
wildman424
Countermeasures Team
Countermeasures Team
Posts: 36
Joined: Fri Dec 10, 2010 12:59 am
experience: I know the functions, OS settings, registry tweaks and more
PC time: Alot more than I should
Contact:

Re: SBST - Support

Postby wildman424 » Sun Jan 29, 2012 10:09 pm

so its got to be something on the server screwing up the works. <?>

I'll have to let Jordon lnow we'll take a look tomarrow.

Thanks again, chrz
Wildman424
Malware Fighter in training
"A wonderful fact to reflect upon, that every human creature is constituted
to be that profound secret and mystery to every other."
-Charles Dickens

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Sun Jan 29, 2012 10:41 pm

No problem at all.
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!

DarkSnakeKobra
Posts: 4
Joined: Wed Feb 01, 2012 6:56 pm
Contact:

Re: SBST - Support

Postby DarkSnakeKobra » Wed Feb 01, 2012 7:07 pm

Hi Steven :)

Is there particular php5 module that needs to be installed for this to be working? The server is a Ubuntu 10.04LTS Lamp server with the standard modules.

apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql


https://help.ubuntu.com/community/ApacheMySQLPHP

User avatar
MysteryFCM
Site Admin
Site Admin
Posts: 3721
Joined: Sun May 15, 2005 12:42 pm
Location: Newcastle, UK
Contact:

Re: SBST - Support

Postby MysteryFCM » Wed Feb 01, 2012 7:12 pm

1. PHP 5 (recommended)
2. Apache or IIS
3. allow_url_fopen MUST be enabled in php.ini (required for file_get_contents() and file_put_contents())
4. cURL (if file_get_contents is not available)
5. MySQL 5 (if you ask it to save to DB)
6. IMAP (for viewing e-mail reports)
7. PHP Mail() (if you want e-mail reports sent to you)

http://support.it-mate.co.uk/?mode=Prod ... searchtool
Regards

Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net

Keeping it FREE!


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest