Root Exploit on Samsung Devices Using Exynos Chips

Posted on Updated on

A root exploit has been discovered on the XDA-Developers forum by member alephzain. They state that this exploit works without having to flash the ROM using ODIN.

alephzain explains that the Exynos device file in the kernel /dev/exynos-mem allows read/write permissions to all users. Many have suggested that a simple fix would be to change the permissions to chmod value 0660 or 0600. Though forum member AndreiLux suggest that this may disrupt camera services on the device and a better solution involving “limit[ing] the access to the DMA memory spaces”

Then …. yes, 🙂 a point and click exploit APK program has been made to allow users to run the exploit and obtain super user privileges. It also allows you to patch the exploit and un-patch it as well. The APK file has been posted on the XDA-Developers thread, authored by Chainfire.

On a side note, the name “alephzain” kind of translates to “thousand good” or “a thousand good things” 🙂

** EDIT **
Just used Chainfire’s exploit APP. Works like a charm on my Samsung Galaxy S3! Now I can use the firewall to block apps from getting ads.


MySQL Replication & Cluster Evaluation

Posted on Updated on

I have recently written a short evaluation of MySQL Replication and Cluster. This was done mainly as a study to evaluate which setup of MySQL Replication or Cluster is better suited to my needs for certain projects.

MySQL Replication

  • Scales the database beyond the single instance capacity constraints
  • Load balance read/write queries
  • Highly Available setup
  • Increase read performance and decrease database load

MySQL replication setups usually consists of a master and slave server. The master server handles reads and writes while slave servers handle only reads. In a situation where SELECT queries dominate over INSERT/UPDATE/DELETE it is ideal to have 1 master handle only writes and many slaves handle all the reads. It is common practice to see a setup of 1 master and 30 slaves.

Read the rest of this entry »

iOS6 HTTP POST Blunder

Posted on Updated on

It usually is quite amazing when someone upgrades their iPhone to a new OS and suddenly things stop working. By "things" I mean web-applications and by "not working" I mean they literally stop working.

This affected me and my work. Suddenly people who visit one of my web-applications cannot use it properly. They seemed to only be able to send HTTP POSTs but not receive. Weird, then we see the issue completely exploded on stackoverflow which is a good thing because it means it’s not you that fu**ed up this time 🙂 it’s an SEP.
Read the rest of this entry »

Useful Linux Commands To Benefit All

Posted on

As a true GNU/Linux user I always hear things from other users beside me. Well yes, aside from the usual swearing and cursing the day the mother-board was created. I am talking about other things I hear. For example the following:

  • Repeated key strokes of “UP + ENTER”
  • Moans of "Maximum allowed open files, wtf is that? I’m confused"
  • Subtle murmuring of "Why is this always showing only in IPv6?"

It’s these things that I hear and it’s the part that no one (at least the primates I encounter in the jungle) do not have the intellectual curiosity to research if there is a better way to perform that task. So just to help a little I am going to publish my small list of most useful GNU/Linux commands to help all primates, apes and monkeys alike (I consider my self a gorilla… I have seen some yetis but they seem to know Linux and use weird things like Slackware and DSL)

Find the number of open files for a given process.
ls -al /proc/fd | wc -l

Find the number of open sockets for a given process in-case the above was under the limit.
ls -al /proc/fd | grep socket | wc -l

Increase the limit of number of open files per process, here we use 2048. Damn why would a process open 2048 files at a time? Feels like a leak….
ulimit -n 2048

Amazing magic with the watch command. Monitor a command and set an interval in second. The below command executes ls -l every 1 seconds to monitor any file changes in the directory. (wow my hand doesn’t hurt anymore)
watch -n 1 'ls -l'

View all network connections on IPv6 and IPv4, or just remove -i6 to just see IPv4.
lsof -Pnl +M -i6 -i4

Show all folders in a directory and how much space they take up and display their sizes in bytes and sort by size
du -s * | sort -g

Be a complete jerk and get the CPU usage to 100% at constant rate! 🙂
ping -l 10000 -s 10 -q -f localhost

Please remember to look at the MAN pages for these commands to further customize them to your needs.

Eclipse Tooltip Issue with Ubuntu

Posted on Updated on

First off I want to say that I really hate Ubuntu. You install Eclipse on Ubuntu 12.04 and load it up to do some coding and only to be faced with the most annoying problem: black tooltip background. Sounds stupid? yes, as stupid as the distro is. This is the only distro I encountered that presents this problem with eclipse.

Either way, solving it was not as easy as installing Ubuntu! You have to go to the directory that holds the ubuntu themes, in my case it was “/usr/share/themes/Radiance” and edit the gtk-2.0 and gtk-3.0 css settings files and reset the background color of tooltip to #F5F5B5.

Someone was so nice as to post how to do this here

This got me on my way to putting my eye balls back in the sockets when I debug code. I still feel that Ubuntu, while easy to install is annoying to modify.

……….. Gentoo Rules!