PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
xtremest
New Member
New Member


Joined: May 10, 2008
Posts: 11

PostPosted: Sat May 10, 2008 1:53 pm Reply with quote Back to top

I looked through all of the forums here pertaining to Sentinel and even did a search on what I am looking for but came up empty handed. I was wondering in the Scrolling Block or Sentinel_Center block if there was a way to show the individuals name, ip, and country? This would be an awesome feature as you probably already have this feature, I just cant seem to find it...

Any help would be appreciated...Oh yeah, another question is:

What if the abuser/hacker attempts to mask their IP, will the Sentinel detect their true IP or just block the one they are routing off of? ? ?

Thanks Wink

PS: RavenNuke Rocks and puts all others to shame..even Joomla... Cool
View user's profile Send private message Send e-mail Visit poster's website
jakec
Moderator


Joined: Feb 06, 2006
Posts: 1836
Location: United Kingdom

PostPosted: Sun May 11, 2008 5:20 am Reply with quote Back to top

I don't believe there is a block like this, so you would need to create a new one, or mod an existing one. There was a discussion here about how to use the Geoip data, which will help you determine the country:
Only registered users can see links on this board!
Get registered or login to the forums!


Unfortunately Sentinel will not display/block the true ip and I don't believe there is any way to do it this.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7446
Location: Arizona

PostPosted: Sun May 11, 2008 9:46 am Reply with quote Back to top

If you keep up on the IP2C (IP to Country) data, then each blocked IP will have a country associated with it. So, it should be possible. However, do keep in mind that most attacks come from anonymous, so not sure how useful the "name" will be.
View user's profile Send private message Visit poster's website
xtremest
New Member
New Member


Joined: May 10, 2008
Posts: 11

PostPosted: Sun May 11, 2008 10:10 am Reply with quote Back to top

Alright, Great...

Thanks for the insight on creating a block or use a pre-existing block to accomplish this task. I understand that most attacks come from anonymous people, and that would be fine to just display anonymous for their name. I also do keep up with every blocked IP, which they all have a country flag attached to their IP.

Now, I just have to figure out a way to directly link the feed from the sentinel db and output it into the block. Anyone have any ideas??? Idea

Or would the following [code] provided by jakec's link be suffice?

RAVEN (2007) states,

$Geoip = ip2long($_SERVER['REMOTE_ADDR']);
$sqlGeo = 'SELECT distinct(c2c) FROM nuke_nsnst_ip2country WHERE "'.$Geoip.'" BETWEEN ip_lo AND ip_hi';
$resultGeo = $db->sql_query($sqlGeo);
if ($db->sql_numrows($resultGeo) > 0) {
$rowGeo = $db->sql_fetchrow($resultGeo);

if (empty($rowGeo['c2c'])) {
$rowGeo['c2c'] = '00';
}
}

echo '<img src="images/nukesentinel/countries/'.$rowGeo['c2c'].'.png" />';


What file would I MOD or How To Create??? Thanks
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7446
Location: Arizona

PostPosted: Sun May 11, 2008 10:23 am Reply with quote Back to top

xtremest, I would actually take an existing block-Sentinel.php or the scrolling equivalent and modify it to do add what you want. The blocked IPs table already has the fields on it that you want:

username
ip_addr
c2c

You can use the c2c field to go against the _nsnst_countries to get the country name.
View user's profile Send private message Visit poster's website
xtremest
New Member
New Member


Joined: May 10, 2008
Posts: 11

PostPosted: Sun May 11, 2008 2:57 pm Reply with quote Back to top

I appreciate the tips on how too, but I am not a php script writing expert; therefore, I have no idea what you just said. I did look through the Sentinel Scrolling Script and found one line in particular that stood out....

$result = $db->sql_query('SELECT `ip_addr`, `reason` FROM `'.$

But how would I go about placing the:

username
ip_addr
c2c

into this particular script? any advice is appreciated and I do apologize for not having the knowledge in this area....

Thanks Question
View user's profile Send private message Send e-mail Visit poster's website
xtremest
New Member
New Member


Joined: May 10, 2008
Posts: 11

PostPosted: Tue May 13, 2008 6:33 am Reply with quote Back to top

Tried, but failed.

This is not a big deal and everyone here has more bigger problems than a MOD for Sentinel.

Therefore, I do appreciate all the help from everyone who posted a reply to my question.

Thanks .... :")
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7446
Location: Arizona

PostPosted: Wed May 14, 2008 5:47 am Reply with quote Back to top

xtremest, sorry... just been swamped. I have this thread saved though and once a free up a bit, I'll check back with you and see if you still need it.
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4809

PostPosted: Wed May 14, 2008 11:47 pm Reply with quote Back to top

Is this any use to you?
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7446
Location: Arizona

PostPosted: Thu May 15, 2008 6:06 pm Reply with quote Back to top

'G', what he wants to do, he's got all the data already in NS. I just don't have the time right now to cook up the few lines of code it takes to do this... Sad
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7446
Location: Arizona

PostPosted: Thu May 15, 2008 7:10 pm Reply with quote Back to top

xtremest,

Ok, I had a few minutes and took the time. Maybe the following is close enough to give you the ideas to play with more:

=== CREATE NEW FILE ===

blocks/block-Sentinel_Scrolling2.php

=== WITH CODE ===

Code:
<?php

/********************************************************/
/* NukeSentinel(tm)                                     */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2008 by NukeScripts Network         */
/* See CREDITS.txt for ALL contributors                 */
/********************************************************/

/* NOTE: To Make this block 100% W3C Compliant, simply
   comment out line's 25 and 42 to Disable The "Marquee
   Function.  Ths block will appear smaller, but will
   grow until it reaches 20 blocked IP's and will stop
   at , size refreshing the list with only the latest 20
   blocked IP addresses.  To change that number, change
   the number after "DESC LIMIT" on line 36 to what you want! */

if(!defined('NUKE_FILE') && !defined('BLOCK_FILE')) { die('You can\'t access this file directly...'); }
global $prefix, $db, $user, $admin, $ab_config;
$usemarquee = 1;
$scrolldirection = 'Down';
$content = '';
$content .= '<table summary="" border="1"><tr><td align="center" valign="top"> This is the list of NukeSentinel(tm) banned IP addresses. </td></tr></table><hr />'."\n";
$content .= '<marquee behavior="Scroll" direction="'.$scrolldirection.'" height="150" scrollamount="1" scrolldelay="75" onmouseover="this.stop()" onmouseout="this.start()"><br />';  // Comment This Line Out for W3C Compliance Step #1
$result = $db->sql_query($sql = 'SELECT `ip_addr`, `reason`, `username`, `country` FROM `'.$prefix.'_nsnst_blocked_ips` LEFT JOIN `'.$prefix.'_nsnst_countries` USING (c2c) ORDER BY `date` DESC LIMIT 20');
while (list($ip_addr, $ip_reason, $ns_username, $country) = $db->sql_fetchrow($result)) {
  if((is_admin($admin) AND $ab_config['display_link']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_link']==2) OR $ab_config['display_link']==3) {
    $lookupip = str_replace('*', '0', $ip_addr);
    $content .= '<strong><big>&middot;</big></strong>&nbsp;'.$ns_username.' - <a href="'.$ab_config['lookup_link'].$lookupip.'" target="_blank">'.$ip_addr.'</a>'.' - '.$country."\n";
  } else {
    $content .= '<strong><big>&middot;</big></strong>&nbsp;'.$ns_username.' - '.$ip_addr.' - '.$country."\n";
  }
  if((is_admin($admin) AND $ab_config['display_reason']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_reason']==2) OR $ab_config['display_reason']==3) {
    $result2 = $db->sql_query('SELECT `reason` FROM `'.$prefix.'_nsnst_blockers` WHERE `blocker`=\''.$ip_reason.'\' LIMIT 0,1');
    list($reason) = $db->sql_fetchrow($result2);
    $reason = str_replace('Abuse-','',$reason);
    $content .= '&nbsp;-&nbsp;'."$reason\n";
  }
  $content .= '<br />'."\n";
}
$content .= '</marquee>';  // Comment This Line Out for W3C Compliance Step #2
$content .= '<br />';
$content .= '<hr /><center><a href="http://www.nukescripts.net" title="NukeSentinel(tm) Available at Nuke Scripts Network" target="_blank">'._AB_NUKESENTINEL.' '.$ab_config['version_number'].'</a></center>'."\n";

?>


=== DONE ===

Now just use this new block and see if it is close to what you want.
View user's profile Send private message Visit poster's website
xtremest
New Member
New Member


Joined: May 10, 2008
Posts: 11

PostPosted: Tue May 20, 2008 1:01 pm Reply with quote Back to top

You guys are the Best...I checked my email and BOOM there it was all written up and ready for me to apply. Thank you Guardian and Montego for all the help and extra step you guys here at Raven Script are willing to go to please or help another community member.

This is why I read rave reviews everywhere about the Software and Community Support you all provide (FREE) of charge to the public. Well, I assure you your efforts are appreciated and never taken for granted here....

PS: It works flawlessly and it looks awesome.....!!! GREAT WORK U 2....

RavensScripts.

I love this place!!! Dance-Stick
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7446
Location: Arizona

PostPosted: Tue May 20, 2008 6:07 pm Reply with quote Back to top

Glad to have another happy customer.

Please do realize that although "free" it costs Raven quite a bit of money to host a very busy site like this. So, if you can spare a few $, donations here are always welcome.
View user's profile Send private message Visit poster's website
xtremest
New Member
New Member


Joined: May 10, 2008
Posts: 11

PostPosted: Wed May 21, 2008 3:37 pm Reply with quote Back to top

Certainly!

I understand and will see what I can do...thanks guys
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15198
Location: Kansas

PostPosted: Wed May 21, 2008 8:52 pm Reply with quote Back to top

Thank you for the kudos! Also, be sure to visit and support the websites of those who help you. There is such an abundance of knowledge/talent in those who selfishly work these boards and watch-dog this site! Montego, Guardian, KGuske, Evaders, FKelly, Gremmie, JakeC, Susann, just to name a few Wink
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
xtremest
New Member
New Member


Joined: May 10, 2008
Posts: 11

PostPosted: Thu May 22, 2008 6:01 am Reply with quote Back to top

Certainly! I have visited several sites already and they all appear to be doing really well. I love trying to write .php, but I am not the best at it and I would appreciate if someone here with (time) could take me under their wing so I can help contribute and benefit this forum or just to help with future projects...

Let me know? Thanks - Wink
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15198
Location: Kansas

PostPosted: Thu May 22, 2008 8:19 am Reply with quote Back to top

Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime

If we were to take everyone "under our wings" as many have asked Smile our wings would have stopped working years ago Wink. That's why we try to lead as much as we can w/o actually doing it all. Montego exemplified our philosophy in one of his responses above when he said
Montego wrote:
Maybe the following is close enough to give you the ideas to play with more



If you are familiar with Star Trek - The Wrath of Khan then this dialog is a tenet for/to our philosophy.

SAAVIK: May I speak, sir?

KIRK: Self-expression doesn't seem to be one of your problems. (pause) You're bothered by your performance on the Kobayashi Maru.

SAAVIK: I failed to resolve the situation.

KIRK: There is no correct resolution. It's a test of character.

SAAVIK: May I ask how you dealt with the test.

KIRK: (amused) You may ask. (pause) (continuing) That's a little joke.

SAAVIK: Humor... It is a difficult concept... it is not logical...

KIRK: We learn by doing. Wink
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
xtremest
New Member
New Member


Joined: May 10, 2008
Posts: 11

PostPosted: Thu May 22, 2008 2:43 pm Reply with quote Back to top

I understand and thank you for your time replying...
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum