Personal Web Space

Blog

Windows Folder Lock

Windows Folder Lock

on 16 March, 2013 in Blog | 0 comments

Have you ever needed to lock your personal folder so that no one can access is unless they know the secret password? I have personally searched for such applications many times but all solutions seem to be complex such creating partitions with encryption and so on. Finally I had some free time and decided to create my own application to do just that; lock a folder! Below you can find some information on how to use it. This simple application is by no means considered secure and can be easily reverse engineered. Thus no explanation on how it works will be given. The application is written in C. It should run on all versions of Windows but is only tested on Windows XP and Windows 7. How to use: Place windirlock.exe in any directory you wish to create the new locked folder. First time it runs it will create a folder called “Personal” and will also request the password to be used for unlocking it. Note that this password can be set only once and can never be changed for the current working directory. Once execution finishes you will notice a new folder called Personal in the current directory. You can place in there any sensitive information you want. At this point, each time windirlock.exe runs it will either lock or unlock Personal folder depending in its current state. Simple, isn’t it?   Download:   Disclaimer: The author of the application is not responsible for any data loss or any other issues caused by the use of this application.   Update 21/03/2013: Version 1.1 uploaded. Offers better...

Read More
PuTTY SSH Tunneling

PuTTY SSH Tunneling

on 7 December, 2012 in Blog | 0 comments

This post explains how PuTTy SSH Tunneling can be easily used to bypass firewall rules blocking ports. Let’s say that we have the following setup where only communication via port 22 is allowed between two hosts: Step 1: Open profile and load server’s profile Step 2: Navigate to Connection->SSH->Tunnels and add new port as the screenshot below, then click Add Step 3: Navigate back to Session and click Save. Then Open an SSH connection and log in the server as usual; as long as the putty window is open and connected, the client can connect to the server’s port 9098 via port 22 using settings (IP 127.0.0.1 and port 9098). Hope this was...

Read More
Linux – set any program to start as daemon/service

Linux – set any program to start as daemon/service

on 3 December, 2012 in Blog | 0 comments

This post explains how to add any program to start a service/daemon on linux (as long as the program supports this). It was created while attempting to start TeamViewer as a daemon while my home server was booting up. To start any program as a daemon, a link to the daemon script should be placed in /etc/rc*.d/ where * is the number of the boot mode the machine is set to start. In order to find what is your current default mode, please check in file /etc/inittab. Usually these types of daemon scripts are placed in /etc/init.d/ directory. The below script is a generic script that will start any application/service defined by the user. Simply copy the code below into a file, e.g. /etc/init.d/newdaemon and then create a symbolic link to it from within the directory your machine is booting e.g. # ln -s /etc/init.d/newdaemon /etc/rc3.d/S90daemon Note that this script was only tested using bash shell. Feel free to use and modify as you like. To test the script is working you can use it like this: # /etc/rc3.d/S90daemon start # /etc/rc3.d/S90daemon status # /etc/rc3.d/S90daemon stop # /etc/rc3.d/S90daemon status   #!/bin/bash # #Generic daemon script # # source function library . /etc/rc.d/init.d/functions RETVAL=0 USER=root PROG=sshd # MODIFY THIS PATHPROG=/usr/sbin/$PROG # MODIFY THIS start () { echo -n $PROG" starting up " $PATHPROG & > /dev/null 2> /dev/null sleep 5 if [ `ps -ef | grep $PROG | grep -v grep | grep -v bash | wc -l` -gt 0 ] then success $"" else failure $"" fi echo "" } status() { if [ `ps -ef | grep $PROG | grep -v grep | grep -v bash | wc -l` -gt 0 ] then echo -n $PROG" is running..." echo "" else echo -n $PROG" is stopped" echo "" fi } stop () { echo -n $PROG" shutting down" > /tmp/pid chmod 777 /tmp/pid > /dev/null 2> /dev/null ps -ef | awk '!/bash/' | awk '/'$PROG'/ {system("echo " $2 " >> /tmp/pid")}' cat /tmp/pid | awk '{system("kill -9 " $1 " > /dev/null 2> /dev/null") }' sleep 5 if [ `ps -ef | grep $PROG | grep -v grep | grep -v bash | wc -l` -gt 0 ] then...

Read More
Flash Galaxy Nexus to latest Android

Flash Galaxy Nexus to latest Android

on 16 November, 2012 in Blog | 0 comments

Before we start Warning 1: This procedure is taken at your own risk as it may result in a bricked phone. Warning 2: After unlocking the bootloader of your device, ALL data will be wiped. This procedure may also work for other Nexus devices. I personally tried it on my Galaxy Nexus GSM 4.1.1 yakjuxw using MacOSX and it was successfully updated to 4.2 takju.    Things you need For Windows: Android SDK Platform-tools, Google USB Driver and Fastboot, Nexus images For Mac/Linux: Fastboot, Nexus images If using Windows, install Android SDK Platform-tools and Google USB Driver before connecting your device to the pc. Make sure to download the CORRECT version of images for your device from Google’s website.   Flash/Install Procedure  Extract Fastboot and Nexus images in the same directory. Move sure that all .img files are located in the same directory (may need to replace boot.img of Fastboot with boot.img of Nexus image) Turn USB Debugging ON from “Settings” -> “Developer options” and connect the device with the computer. Turn device off. Turn it on in bootloader mode by keeping pressed up+down volume buttons and power button.  Using command line navigate to the directory where Fastboot and Nexus Images are placed on your computer. Unlock bootloader using Fastboot. Note that there are different versions for Windows (fastboot), Mac (fastboot-mac) and Linux (fastboot-linux). Use the correct one! # ./fastboot-mac oem unlock Choose Yes using up/down buttons. To select press the power button. When the bootloader is unlocked you will see something like this: Reboot in bootloader # ./fastboot-mac reboot-bootloader Flash bootloader image # ./fastboot-mac flash bootloader bootloader-maguro-primelc03.img Reboot in bootloader # ./fastboot-mac reboot-bootloader Flash radio image # ./fastboot-mac flash radio radio-maguro-i9250xxlf1.img Reboot in bootloader # ./fastboot-mac reboot-bootloader Flash system image # ./fastboot-mac flash system system.img Flash userdata image # ./fastboot-mac flash userdata userdata.img Flash boot image # ./fastboot-mac flash boot boot.img Flash recovery image # ./fastboot-mac flash recovery recovery.img Erase cache # ./fastboot-mac erase cache Reboot # ./fastboot-mac reboot Ready to go with your Galaxy Nexus & latest Android...

Read More
Transfer Calendar from iCloud to Microsoft Outlook

Transfer Calendar from iCloud to Microsoft Outlook

on 7 September, 2012 in Blog | 0 comments

Using MacOSX open Calendar application. In case you are already logged in to iCloud the entries should appear. Go File->Export->Export and save the exported file anywhere on your mac. This will create a file with an extension .ics. Locate the file using Finder and right click on it. Select Open With, then Microsoft Outlook. Done! All your entries should now be in your outlook...

Read More

New URL Shortener

on 17 May, 2012 in Blog | 0 comments

I was planning for quite some time now to register the domain tsent.as. A few days ago this really happened. In order not to leave the domain sitting without any use, I decided to create a very simple URL shortener interface written in PHP. Visit http://tsent.as/ and shorten as many domains as you like. It’s anonymous, simple and...

Read More
Page 2 of 512345