Posts

Showing posts from October, 2015

Cycling from Kathmandu to Lumbini

We two friends decided to try something adventurous and crazy for our yearly long festival vacation. Hence, our plan was to cycle from Kathmandu to Lumbini, the birthplace of Gautam Buddha. It was really a nice experience. And here I am going to write the daily details. Oct 17 2015 We had started our journey from Imadol, Lalitpur at 6:00 am. I am planning to track all the way on MyTracks on my phone and hence i had started the GPS and started recording tracks. It was not so cold but we had to put jackets as the morning wind was chilled a bit. We started our paddling on a upward inclination from Kalanki upto Nagdhunga. The way after that was continuous downhill and was fun for cycling, we berely have to paddle on few places. It was around 9:00 when we reached at Simle bazzar, Dhading, where we had breakfast. We get a tire flat on my friends bike near Gajuri, and we patched it with the patch kit we had. Keep on paddling and reached Malakhu for our lunch of the day. Ha...

Cute php shell

Image
The problem i faced - I have a wordpress backend web-site hosted on shared hosting - I have no root access on the server but a limited user with access to mysql database - I had to clean junk files on uploads directory which was owned by www-data user - But as i was no super user i can't delete the file owned by other user, neither can i change ownership of the file owned by other user. My temporary solution - wrote a php which could delete a file/directory passed through GET request Then out of box i just googled "php shell single file" http://lmgtfy.com/?q=php+shell+single+file and the first entry of the result was https://github.com/b374k/b374k . And ya thats what i wanted. I could simply clone this code into webservers document root directory. Give the ownership of the directory to apache user. While accessing the code from browser, i could configure the application to my requirement like password, module required and then after it will generate single-file php shell...