Josh’s Random Non-sense!

Back From Cali

Posted on Saturday, August 23rd, 2008

And it was grrrrreaaat!
I have so say, I will definitely miss the California climate. It only got up to about 80 degrees the whole time we were there and stayed closer to 75 with a nice cool breeze and next to no humidity at all – perfection.
What few pictures I took (compared to Guy at […]

continue reading

It’s Uncanny…

Posted on Wednesday, April 9th, 2008

I figure I’d provide a little laugh for the rest of the world
(thanks for pointing this out Elaine … i think )
This is a pic of me about a year ago after a friend attacked my hair with a straightener … my hair didn’t recover lol

and here’s my little prime-ape look alike […]

continue reading

Decrypt nested eval gzinflate str_rot13 base64_decode

Posted on Saturday, March 22nd, 2008

So I went ahead and wrote a script to undo massively nested eval(gzinflate(str_rot13(base64_decode(‘STRING’)))); and eval(gzinflate(base64_decode(‘STRING’))); “encryptions” with a multitude of both of them inside it. The string from the original footer here had to go through 67 different iterations before it got to the real source code (talk about overkill).
If you have strings that aren’t […]

continue reading

Summer … Except Not

Posted by josh on Friday, June 6th, 2008

Summer is supposed to be a time of uber laziness … waking up at 10 in the morning (at the earliest) and going on all sorts of random trips to random places with friends.

Alas, I have class monday through friday at 7:30 in the friggin morning … what’s up with that? :/

It’s not all bad I suppose. Right now it’s rather easy, but I guess I have my “big head” to blame (or thank?) for that, now don’t I? :P

I made an ircbot in php out of sheer boredom. It was actually a lot easier than I had imagined. The main file is below, the others are here.


<?php
include("config.php");
include(
"functions.php");

$fso = @fsockopen($host$port$errno$errstr2) or die("can't connect\n");
if(
$fsoregister();

while(1) {

    $buffer fgets($fso);
    
    if(
strlen($buffer) > 2){
        echo 
"[RECV] {$buffer}";
        
$bad 0;
        include(
"commands.php");
    }
    else{
        ++
$bad;
        if(
$bad >= 2) echo "connection issue?\n";
        if(
$bad >= 10$restarting TRUE;
        
#if we haven't heard from the server in a while, reconnect?
    
}
    
    if(
feof($fso) && $restarting !== TRUE) die("connection broke!\n");
    if(
$restarting === TRUE){
        
sleep(1);
        
$fso = @fsockopen($host$port$errno$errstr2) or die("can't connect\n");
        if(
$fso){
            
register();
            
$restarting FALSE;
        }
    }    

    flush();

}

?>

The semi-interesting stuff is inside the commands.php file which plays ping/pong with the server, alerts NickServ to who you are, and replies to my random commands.

Yay for boredom!

Elaine’s coming over tomorrow, :D.

-josh

PS. fun convo with guy

Guy: who knows
Guy: hmm i’m going to go exercise and shower
Guy: brb
josh: at the same time?
josh: that’s nasty, i know what you’re doing in there
Guy: lol

Posted in: Coding.

Leave a Reply