On PHP “Encryptions”
Alright, so I’ve gotten (relatively) a lot of attention for my post(s) (mainly this one) about “decrypting” PHP scripts that are engulfed in various combinations of gzinflate();, str_rot13();, and base64_decode();.
This post is mostly an attempt to enlighten those that come upon it to what these functions are and do, and probably more importantly, how to undo their secretive evil.
(more…)
1,1,2,3,5,8,13
Mmm, I love me some Fibonacci numbers
(scratch that, Proofs class makes them suck)
So I’m officially 21 (as of Friday). Went out to Olive Garden with Brittany and her boyfriend. Let’s just say that, although their Birthday song rhymes, it makes no sense. I think the only thing that related to birthdays was them saying the word at the beginning to try and make it seem like it was a Birthday song.
DMV’s are closed on Fridays … >:( (which means my license is expired right now) and the place where you are supposed to be able to renew it online, straight up denied me without much of an explanation as to why.
I recently revamped the codebase at thespiffylife.com, moving to a more CMS-based approach as apposed to a ton of random php scripts all over the damned place. Once I finish the admin section and knock some kinks out I may make the code public. I’m not sure if anyone would use it… I know a LOT of people use the ComicPress addition to WordPress, which is nice and enables a buttload of plugins for you simply because it runs on top of WordPress but I felt that that is a bit overkill for just tossing up images with a title. I tend to be more of a do-it-yourself type of person. If there’s on tiny piece of something that bothers me, I usually end up redoing it all myself. Customizing things is fun too
.
Right now it runs on MySQL and PHP 5.1+. I’m considering making it work without the MySQL server, but I’m not sure how that would affect performance (whether or not it would be worth the effort, because it might turn out really effing slow to rummage through arrays, because right now a page will load uncached in under a tenth of a second). If I did that I’m sure more people would be interested because, although MySQL server’s are easy to come by, some people just don’t have access to them (or they prefer something else, which, I suppose could be included in my database class).
I finally got around to fixing our Facebook application, and will probably add some more features to it during the break. Their API is slightly confusing and, even though it’s got a lot of documentation, I find a lot of it is out of date for the new site design / API. Which makes it “fun” to try and mess with. Plus the fact that I forgot to remove people from the database when they deleted the app, that didn’t make things any easier either.
Thanksgiving is Thursday! No class for two days + turkey in my belly = WOOT
. That and the fact that next week is “dead week” makes me excited. Of course I do have two tests on Wednesday, one being Proofs, which sucks. But once that’s over it’ll be grrrreat.
Ode to …
So installing Trac on a shared host is a pain in the ass … just a FYI
Here’s my Ode to Guy:
lolz
So I bought a whole cheesecake for me, myself, and I the other day. MMMMMMM It’s so good! I’m a 300lb man trapped in a 140lb body
. (Don’t ask for any, it’s almost gone
lol)
Got a 97% on my Differential Equations test! Yay, although I’m slightly upset I missed those 3 points :’( I wanted the A++ personal bragging rights lol. Had a friggin Calc 3 test today … I’m so tired of studying :/ it’s teh lameness.
If anyone’s interested (I doubt anyone is
) here’s the main class I use that powers TheSpiffyLife.com: comic.class.php
I’ve thought about making what I use available to others (admin section, etc) because I’ve only come across a couple of other methods to make a comic site with PHP. One being ComicPress (which is nice, but it’s a theme/plugin for WordPress [obvious by the name], and not everyone wants / needs WordPress along with what they have) and the other ComicCMS (which is fairly basic but doesn’t utilize an actual database to save the info, so it’s scope of future features is pretty limited).
PS. Ode to PHP
PPS. Hilarious Blast From the Past via Sega:

I totally still have mine too
Summer … Except Not
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?
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, $errstr, 2) or die("can't connect\n");
if($fso) register();
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, $errstr, 2) 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,
.
-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