Rant: Free or Freedom?

For the last few months/years in both online and offline tech circles all I seem to hear a hate for service like facebook and how they are always stealing your data, not looking after your data or god forbid trying to make any sort of money at all. But the main criticism is the fact they use your data for something and someone doesn’t like it but still continues to use the service.

Facebook does these things to get this magic stuff called money, this stuff doesn’t grow on trees, can’t be printed and must be earned. First off, Mark Zuckerberg probably worked more than what some people work to count as ‘employment,’ to help create his baby. And

once Facebook was established he would of needed an army of staff to keep the site running. Mark and his staff

2419850566_e802af1520

I don’t think Mark Zuckerberg found these lying at the end of the street.

needs to eat, needs to pay for
their bills. How do you suggest they do this?

The first point is regardless of the fact that these services require vast amounts of machinery to let you share pictures of your drunken night out, like your crushes photos, sending out your cries for attention, etc. And I suppose they are pretty expensive to buy, yet alone to run 24/7 letting you access this stuff.

I hopefully established the point that facebook (and nearly every other website) needs money to be able to exist. Using a stroke of genius that has basically made the internet the free and open place it is today by using advertising. I don’t need to explain what advertising is, it keeps nearly every single free source of entertainment going. It is also no secret that facebook uses your data (which you freely give away to your network of well over 1k ‘friends’) to send you adverts that you are more likely to click on, the bastards.

I’m not saying that there isn’t an expectation of privacy on these service, but you are in control of that with the nifty feature facebook has spent a lot of time using, these features are pretty self explanatory.

Another complaint is that the people/content on facebook are so dumb/religious/whatever and this isn’t Facebook’s faults, its just your misfortune to live among/associate with retards and zealots.  If you hate facebook so much, instead of vocalising that on facebook, delete your account, somehow, I don’t care, I like facebook.

I will admit that I am going along a similar path, I have a google ad to the right (if your not one of those bastards with an adblocker, I’ll admit I am) and a few Amazon associates links dotted around to earn a little bit of money because frankly, I have been destitute in freezing fucking scotland for the last few months. I haven’t been lambasted for the ads yet but I feel like that’s due to the fact no one goes here.

 

rant over, not like anybody is going to see it anyway

What is Android?

Android has basically become a buzzword among technology fans and Mobile phone makers. But what is Android?

Basically Android is an Operating system created by Google that powers a majority of the smartphones at the moment. Google invented this Operating System as a joint venture with Google, T-Mobile and the team that created the sidekick phones that were popular on US series such as weeds (Never seen one in real life.) It was announced just before the iPhone but android looked completely different then. It didn’t have any kind of touch screen and looked a lot like a blackberry but as the iPhone was announced, Android was quickly spun into a touchscreen OS and released on the T-Mobile G1. (HTC Dream)

One of the main points about Android is that the software isn’t bound to a single Device or Manufacturer meaning an app created for Android will hopefully run on the majority of phones, and back when it was released that dream was true, mainly because most android phones where created by HTC with the specs, but different form factors.

To make it able to run on many devices from many manufacturers google had to find a way to create code that will run on as many Android configurations as possible . To do this they made the programming language for android Java but extended so there are much more hardware functions available to the programming environment such as swiping, shaking and taking photos. This required Google to create a new Java vm for Android called dalvik with all of these features available to programmers.

In contrast the iPhone has a native form of code called Objective C, but Apple can afford to do this since iOS runs on a handful of devices that Apple let exist.

But as you might of guessed, when manufacturers got hold of android they started creating there own android interfaces that may or may not be as good as the one google has designed. Or certain carriers may insist on limitations on devices so they can sell services to get around these limitations. Because of this hackers began getting root access (complete control of hardware and software) and started customizing their operating systems and sometimes packaging them up and distributing them as complete Operating systems that still, in essence, Android.

Also because of the varying hardware available on phones catering from budget to budget busting, there has been a phenomenon called fragmentation where some phones are just too low end to upgrade to the latest version of Android or run some apps. Or some manufacturers killing phones off early and this is another reason for the widespread hacking of the android OS.

I am personally interesting android because it is playing a major roll in this semester of Ethical hacking, to the point one of my projects is based on this. A really good book I really want for my project is Android forensics by Andrew Hoog

Google, your terrible atm

Quick rant post here but I recently tried to buy 2 apps, the first app is stuck on pending. The second post has apparently been bought since I received a nice receipt from Google saying I bought it etc and shows up on the previous orders list. But when I try and download it, the app page on both the website and the app says I haven’t bought it. I have used their complaints tool, but I haven’t even received a confirmation like Google said I would receive. So I here I am the cost of 2 apps down without any download to show for it. Thanks Google.

 

Shame, was considering selling apps but now, -.-

Modern Operating Systems 3rd edition

I am currently a student in Ethical hacking and there is only one book I wish to own, but alas, funds do not allow this. The book is Modern Operating systems 3rd edition and currently on some websites its well over 100 pounds! after looking around some further I found some people are selling for £16 at amazon. Now, to earn £16…

Advanced file recovery [Linux]

Read the basic file recovery article and still cant recover the file you need? Want to recover off something more exotic? (like EXT, mac or even Xbox 360 hdds) This guide is for you then.

The method I am going to teach in this post is called file carving and I will be using a program called Scalpel in Linux as opposed to foremost which I have used in previous guides. Scalpel is a complete rewrite of foremost to be much faster.

File carving is where a program will look for a header and footer for each type file it is looking for in a huge chunk of data (that means you can search a disk image or a block device like /dev/sdb1 to search the device directly)

***NOTE: DO NOT RUN THIS ON THE DEVICE YOUR RUNNING YOUR OS OFF, RECOVERING FILES TO OR ARE CURRENTLY USING YOU MY LOSE THE FILES YOU ARE TRYING TO RECOVER***

I am using xubuntu on my netbook and my post will be based on my experience, but should work in most distro’s

  • Use your Linux distribution’s package manager to install scalpel
    • sudo apt-get install scalpel
    • Enter your password when prompted
  • Open the Scapel config file and uncomment the file types you are looking for
    • sudo nano /etc/scalpel/scalpel.conf
    • When you are done press ctrl-O and press enter to save, exit with ctrl-X.
  • get the block device of your usb device by plugging in your device and opening the mtab file
    • cat /etc/mtab
    • the last entry should be your device (in my case it is /dev/sdb1)
  • Create a folder in your home directory to recover your files too and enter it
    • mkdir -p ~/recovery
    • cd ~/recovery
  • Start analysing your drive with Scalpel
    • sudo scalpel -o . /dev/sdX(sdb1 in my case)
    • wait for scalpel to complete (this may take longer than Recuva on windows)
  • Files you are looking for should be in the recovery directory

I was trying this method on an old SD card and it not only recovered the test photos I deleted but photos from many years ago. This tool is very powerful, I have used it to recover music off an old Xbox 360 hard drive.

There are ways to improve this, a lot of people in the computer forensics field create there own custom scalpel configs which find evidence in files with matching header and footers, for example, in the iPhone forensics book by o’reilly the author created a config to find amr files which contain voicmail messages stored on the phone, http://my.safaribooksonline.com/book/networking/forensic-analysis/9780596153588/forensic-recovery/data_carving_using_foremost

Basic file recovery guide [Windows]

This is guide on file recovery I created on a now defunct website (expect more original stuff in the future though) that people actually visited so I thought I’d re-share what I previously created (And better since I am also providing a Windows tutorial too.)

***FIRST RULE OF FILE RECOVERY, DON’T USE THE DRIVE IF YOU WANT TO RECOVER A FILE FROM IT***

I am running Windows 8 at the moment so this guide should work on all current versions of Windows (XP SP3 – 7)

—–

There are many pieces of software on Windows that will happily charge you a fortune for their services but since I am a broke student I will avoid paying at any cost (whilst still legal enough to publish next to my name :P )

The software I will be using Recuva from Piriform software which has brought out other great software like CCleaner, Defraggler and Speccy.

Click here to get Recuva

  • Download and install Recuva
  • It should open to the welcome screen of its Wizard window, just click next.
  • Choose the type of content to recover, I’m looking for photos on an SD card
  • On the next page I chose the on my media card or iPod option (Use this option if you are trying to recover from a USB stick as well,) otherwise click the option most relevant to you
  • Depending on how long ago you have deleted the file (say over a week of use) you may have to enable the Deep Scan option on the next page. If you have just lost the files and haven’t used the device with the data on it just click next.
  • If it doesn’t find any files on a quick scan it will prompt you to do a Deep Scan anyway.
  • Recuva should now be scanning the device you have selected. (A slow 2gb SD card took about 5 minutes on a deep scan.
  • Select the files you want to recover (some files may have no name and may be damaged)

This software recovers from a rather pedestrian set of filesystems that would be used in average Windows systems, if you are looking to recover from something more exotic you are better off looking at my next guide. Click here to jump to the advanced file guide [not yet :P ]