RSS
 

Fix PHP 500 Internal Server Error when using date()

31 May 2016

For a particular project I was working on, I set up a website with a really simple script that used the php date() function. However, the use of the date() function resulted in a 500 internal server error. After some testing, I determined this was caused because of a configuration in php.ini. There was an invalid value for…read more.

 
No Comments

Posted in Server Management

 

Simple PHP File Download Script

18 Dec 2015

So I recently added a download.php script to my website so that I could force downloads of files instead of having users access them through an indexed directory or through their browser. I found various scripts online but none of them were as clean as I’d have liked them to be so I wrote my own…read more.

 
No Comments

Posted in Programming

 

HACKvent 2015: Day 15

15 Dec 2015

Challenge

Solution Straight away this looks like a logic solver problem. I intend to use Z3 theorem solver (link) as I am most familiar with it out of all the available solvers out there. First step is to understand the problem. Each letter corresponds to a single digit 0-9. The q  digit cannot be…read more.

 
No Comments

Posted in Hackvent 2015

 

HACKvent 2015: Day 14

14 Dec 2015

Challenge

The following Windows binary was also provided: Download EXE File   Solution I download the binary and run it and am presented with the following program: It turns out that this program will tell you (via a messagebox) if you enter in the correct daily nugget or not! So all we have to…read more.

 
No Comments

Posted in Hackvent 2015

 

HACKvent 2015: Day 13

13 Dec 2015

Challenge

The following image was also provided: Solution First I suspect the common least significant bit steganography technique has been used here where the least two or one significant bit(s) of the image have been changes so other images can be hidden without affecting the appearance of the first image by much. I load up…read more.

 
No Comments

Posted in Hackvent 2015

 

HACKvent 2015: Day 12

12 Dec 2015

Challenge

The following C code is also provided:

  Solution Clearly the issue here is that this program is very inefficient. So what does the program do? First it sets the unsigned 64 bit integer variables  val and i  to 0. Then 0xC0DE42 iterations occur and the val is recomputed each calculation. The previous val  and i …read more.

 
No Comments

Posted in Hackvent 2015

 

HACKvent 2015: Day 11

11 Dec 2015

Challenge The following image is provided: Solution I had to spend some time researching the above image but I soon discover that it is a punch card. It turns out to be a IBM 96 Column Punchcard. Unfortunately there isn’t much information online on how to decode them. A reverse image search comes up with the following image:…read more.

 
No Comments

Posted in Hackvent 2015

 

5138 – Escape from Python City

10 Dec 2015

I connect to the server and am presented with the following message:

I type in ls and am presented with the following:

I am in a python sandbox and must escape or read the key.txt file somehow. I try to simply type in sh and get the following message:

I notice the exception and figure…read more.

 
No Comments

Posted in Hacking Lab

 

HACKvent 2015: Day 10

10 Dec 2015

Challenge

The following zip file was also provided: Download ZIP File Solution We notice that the zip file nasty-Shit.zip contains one zip file called 1.zip, that contains one zip file called 2.zip and so on. I also know that the file zile will keep getting lower and lower in file size the more we…read more.

 
No Comments

Posted in Hackvent 2015

 

Creating an Extremely Strong and Unique Password

10 Dec 2015

In this post I’ll give you a method to create a really strong and flexible password. Now i’ve personally only gone through 5-6 passwords in the last 8 years. The first 2 passwords were insanely weak (6 digit numbers!). I then started picking stronger passwords but unfortunately I’ve had to change my password multiple times due…read more.

 
1 Comment

Posted in Security

 
Page 1 of 512345