"Hacking" Sign Script

DDRtists

ɹoʇɐɹǝpoɯ ɹǝdns
Reaction score
415
Made by request, too lazy to make a guy with a sign ( Someone make me one, and I'll make the script for it. :) ).

It requires the GD Module, but that comes with most PHP Distributions. ( Though, Your host has to enable it... ).
Please don't link to my image, I don't need the added Bandwidth loss. :p

Right Now, it looks like:
MakeSign.php


I'm sure you can edit it, though. ;)

Script:
PHP:
<?

$os = get_os_name($_SERVER['HTTP_USER_AGENT']);
$ip = GetHostByName($REMOTE_ADDR);
$using = get_browser_name($_SERVER['HTTP_USER_AGENT']);
if($os == 'Unknown') $OSString = 'Hmm, I guess you have a leet OS!';
if($os != 'Unknown') $OSString = 'Your OS is '.$os.'!';
if($using == 'Unknown') $BString = 'Hmm, I guess you have a leet Browser!';
if($using != 'Unknown') $BString = 'Your Browser is '.$using.'!';
$IPString = 'Your IP is '.$ip.'!';

header("content-type: image/png");
$im = imagecreate(400,80);
$black = imagecolorallocate($im,0,0,0);
$white = imagecolorallocate($im,255,255,255);
imagefill($im,0,0,$black);
imagestring($im,12,10,10,$OSString,$white);
imagestring($im,12,10,30,$BString,$white);
imagestring($im,12,10,50,$IPString,$white);
imagepng($im);
imagedestroy($im);	
	
function get_os_name($user_agent)
{

$oses = array (
	'Windows 3.11' => 'Win16',
	'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)',
	'Windows 98' => '(Windows 98)|(Win98)',
	'Windows 2000' => '(Windows NT 5.0)|(Windows 2000)',
	'Windows XP' => '(Windows NT 5.1)|(Windows XP)',
	'Windows 2003' => '(Windows NT 5.2)',
	'Windows NT 4.0' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)',
	'Windows ME' => 'Windows ME',
	'Open BSD'=>'OpenBSD',
	'Sun OS'=>'SunOS',
	'Linux'=>'(Linux)|(X11)',
	'Macintosh'=>'(Mac_PowerPC)|(Macintosh)',
	'QNX'=>'QNX',
	'BeOS'=>'BeOS',
	'OS/2'=>'OS/2',
	'Search Bot'=>'(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp/cat)|(msnbot)|(ia_archiver)'
);

 
foreach($oses as $os=>$pattern)
{
	if (eregi($pattern, $user_agent)) return $os;
}

	return 'Unknown';
}


function get_browser_name($user_agent)
{
$browsers = array(
	'Nintendo Wii' => '(Nintendo Wii)',
	'Opera' => 'Opera',
	'Mozilla Firefox'=> '(Firebird)|(Firefox)',
	'Galeon' => 'Galeon',
	'Mozilla'=>'Gecko',
	'MyIE'=>'MyIE',
	'Lynx' => 'Lynx',
	'Netscape' => '(Mozilla/4\.75)|(Netscape6)|(Mozilla/4\.08)|(Mozilla/4\.5)|(Mozilla/4\.6)|(Mozilla/4\.79)',
	'Konqueror'=>'Konqueror',
	'SearchBot' => '(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp/cat)|(msnbot)|(ia_archiver)',
	'Internet Explorer 7' => '(MSIE 7\.[0-9]+)',
	'Internet Explorer 6' => '(MSIE 6\.[0-9]+)',
	'Internet Explorer 5' => '(MSIE 5\.[0-9]+)',
	'Internet Explorer 4' => '(MSIE 4\.[0-9]+)',
);

foreach($browsers as $browser=>$pattern)
{
	if (eregi($pattern, $user_agent)) return $browser;
}
	return 'Unknown';
}

?>

And yes, it does work on the Wii. :)
http://img262.imageshack.us/img262/1757/dsc086117hq.jpg
Like my IP? Lol @ being on the same network as the server.

You can also add more Browsers/OSes in there too, if you want.
 
G

g1real

Guest
I have no knowledge of such coding, but i can understand < a bit> what it does... <3 having basic knowledge.

Anyhow, a fairly simple script but still effective... but you could just get a link from that website which shows the sign-guy... right?
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
608
Nice! I really wanted to know how to do this :D (Starts to make a design for it)
 
P

Persen

Guest
How entertaining... I just was hacked... :D
Nah, don't call it hacking... makes me a li'l pissed :D
 

mase

____ ___ ____ __
Reaction score
154
Very nice man :p lol

LOL I love that pic :p
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
How entertaining... I just was hacked... :D
Nah, don't call it hacking... makes me a li'l pissed :D

Agrees, it makes people think that your IP, browser and color on underpants is some kind of secret which must be 'hacked'.

<rant>
Truth is
IP: Must be sent, else you wont be able to use teh internets
Browser: Most browser want to tell who they are.
OS: Same as above.

They same thing applies to the page your are requesting ofc :)
I once got a comment "You shouldn't mention what software you are using because it's a security issue". Truth is that I wasn't and admin of that server, I just watched the response headers to find out that info... :banghead:
</rant>
 

Master

Thou shall be helped by...The Black Adder!
Reaction score
72
lol, my hacking sign is scripted.
Good job, DDRtists.
 

DDRtists

ɹoʇɐɹǝpoɯ ɹǝdns
Reaction score
415
How entertaining... I just was hacked... :D
Nah, don't call it hacking... makes me a li'l pissed :D

I know, I called it "Hacking" Sign because thats what the thread where they requested it at was called, and I explained it wasn't hacking. :)
 

Oninuva

You can change this now in User CP.
Reaction score
221
What A Hack.

Anyways... wasn't there some website with this? And you could store this on a database... Collect some nice info here...
 

mase

____ ___ ____ __
Reaction score
154
Lol, wow why would anyone need all the ips ever? What idiots.
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
608
Here is a updated new version I made .. thanks DDRtists

btw don't use imagestring use imagettftext .. its a lot better :cool:

YourIp.php



Here is the source (All credit goes to DDRtists)
PHP:
<?
$os = get_os_name($_SERVER['HTTP_USER_AGENT']);
$ip = GetHostByName($REMOTE_ADDR);
$using = get_browser_name($_SERVER['HTTP_USER_AGENT']);
if($os == 'Unknown') $OSString = 'Hmm, I guess you have a leet OS!';
if($os != 'Unknown') $OSString = 'Your OS is '.$os.'!';
if($using == 'Unknown') $BString = 'Hmm, I guess you have a leet Browser!';
if($using != 'Unknown') $BString = 'Your Browser is '.$using.'!';
$IPString = 'Your IP is '.$ip.'!';
$Hackcomment = 'Preparing to hack your computer......';
$font = 'Verdana';

header("content-type: image/png");
$im=ImageCreateFromPng("hack.png");
$black = imagecolorallocate($im,0,0,0);
$white = imagecolorallocate($im,245,245,255);
imagefill($im,0,0,$white);
imagettftext($im, 8, 0, 5, 140, $black, $font, $OSString);
imagettftext($im, 8, 0, 5, 160, $black, $font, $BString);
imagettftext($im, 8, 0, 5, 180, $black, $font, $IPString);
imagettftext($im, 8, 0, 5, 220, $black, $font, $Hackcomment);
imagepng($im);
imagedestroy($im);    
    
function get_os_name($user_agent)
{

$oses = array (
    'Windows 3.11' => 'Win16',
    'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)',
    'Windows 98' => '(Windows 98)|(Win98)',
    'Windows 2000' => '(Windows NT 5.0)|(Windows 2000)',
    'Windows XP' => '(Windows NT 5.1)|(Windows XP)',
    'Windows 2003' => '(Windows NT 5.2)',
    'Windows NT 4.0' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)',
    'Windows ME' => 'Windows ME',
    'Open BSD'=>'OpenBSD',
    'Sun OS'=>'SunOS',
    'Linux'=>'(Linux)|(X11)',
    'Macintosh'=>'(Mac_PowerPC)|(Macintosh)',
    'QNX'=>'QNX',
    'BeOS'=>'BeOS',
    'OS/2'=>'OS/2',
    'Search Bot'=>'(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp/cat)|(msnbot)|(ia_archiver)'
);

 
foreach($oses as $os=>$pattern)
{
    if (eregi($pattern, $user_agent)) return $os;
}

    return 'Unknown';
}


function get_browser_name($user_agent)
{
$browsers = array(
    'Nintendo Wii' => '(Nintendo Wii)',
    'Opera' => 'Opera',
    'Mozilla Firefox'=> '(Firebird)|(Firefox)',
    'Galeon' => 'Galeon',
    'Mozilla'=>'Gecko',
    'MyIE'=>'MyIE',
    'Lynx' => 'Lynx',
    'Netscape' => '(Mozilla/4\.75)|(Netscape6)|(Mozilla/4\.08)|(Mozilla/4\.5)|(Mozilla/4\.6)|(Mozilla/4\.79)',
    'Konqueror'=>'Konqueror',
    'SearchBot' => '(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp/cat)|(msnbot)|(ia_archiver)',
    'Internet Explorer 7' => '(MSIE 7\.[0-9]+)',
    'Internet Explorer 6' => '(MSIE 6\.[0-9]+)',
    'Internet Explorer 5' => '(MSIE 5\.[0-9]+)',
    'Internet Explorer 4' => '(MSIE 4\.[0-9]+)',
);

foreach($browsers as $browser=>$pattern)
{
    if (eregi($pattern, $user_agent)) return $browser;
}
    return 'Unknown';
}

?>
 

DDRtists

ɹoʇɐɹǝpoɯ ɹǝdns
Reaction score
415
I'm aware of that, but I was too lazy to code in a TTF Font, so I just made a fast Image script to display the concept...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top