Pages

Thursday, August 13, 2015

Nethunter 2.0 on a Nexus 7 2013 with the TP-Link TL-WN722N

Note: This fix has only been tested on a Nexus 7 2013 (WiFi edition) only. It may or may not work on other Nexus 7 variants (2012, 2013 LTE, etc.). Your mileage may differ from mine. Also note this is for the Kitkat image as the Lollipop images seem to have broken WN722N support. Also take note this is for the KitKat release and NOT for the Lollipop release.

Some of you might be into mobile penetration testing and use a Nexus 7 for that. Some of you may come across the issue that after upgrading to the latest Kali Linux 2.0, or in this case, Nethunter 2.0, on your Nexus 7, connecting an external WiFi adapter such as the cheap but efficient TP-Link TL-WN722N no longer works. Some might suggest trying to fire up aircrack-ng to 'force' the interface up but if you check your dmesg logs, you will not see it connected.

My guess is the kernel does not recognize it. Now running Kali Linux 2.0 on a VM under OSX or Windows 8.1 for that matter, it works flawlessly without a hitch. After all, Nethunter 2.0 is based on Kali Linux 2.0 right? Unfortunately, not on the Nexus 7 at least for me.

The fix? Just open up the Nethunter launcher on your homescreen, select the first option which is to run the terminal window. You should have root access automatically. If this is the first time you do this, SuperSU or Superuser should prompt you for root rights.

Once in the terminal just do a "apt-get install firmware-atheros". This will grab the Atheros chipset modules and allow them to be loaded onto the kernel. For your information, the WN722N runs on the ath9k_htc module. After finished installing this package, unplug your TL-WN722N and replug it and do a "iwconfig" to confirm it lives. If it doesn't, try unplugging and re-plugging it again or reboot your Nexus 7. It should work by now.


Tuesday, March 22, 2011

Japan Earthquake Cartoon Done Right

It has been more than a week since the triple disaster in Japan (earthquake, tsunami and nuclear plant). As of today, people are still recovering from the earthquake and tsunami and at the same time having control of the nuclear situation in Fukushima Daiichi plant.

As I was on Twitter today, I stumbled across a picture of Ultraman and the tsunami. Where as a local Malaysian newspaper called Berita Harian decipits a controversial and insensitive cartoon of Ultraman running away from the tsunami, this picture that I came across was done right. You can compare them below.
This is the controversial and insensitive cartoon by Berita Harian. Please take note that a majority of the Malaysian people have reacted very strongly to this cartoon. The cartoon is in no way represent the feelings of Malaysians.
This cartoon is done right. It shows Ultraman saving people from the tsunami. Such cartoons aims to improve and promote hope to the Japanese people to never give up hope in the face of danger. Credits to Peter of J-List for sharing this.

Thursday, February 10, 2011

Flash 10.1 on the Nokia N900 (non-hardware accelerated!)

Note: Do this with root access. If you don't know what root is, you shouldn't be messing with your N900

Replace the file in /usr/lib/browser/plugins with the file found here. Make sure that you already do a backup of the Flash 9 plugin and maybe move it to /opt to save some valuable space (note that the /usr resides in a paltry 256MB partition as opposed to your /home partition on the Nokia N900).

Also please take note that this plugin is BETA and is not hardware accelerated hence it will drain your battery rapidly.

Credits go to knownokia for this hack.

Tuesday, February 01, 2011

iPhone or iPad Safari Cannot Open Links from Google Results?

Ensure that UAFaker or another program that deals with user agent customization are disabled to see if that fixes the problem.

SSH Not Working on iPhone?

Take note this is for jailbroken iPhones only.

Sometimes even though you have OpenSSH configured properly and have Automatic SSH installed on your iPhone, you may tend to lose SSH connectivity to your phone. As such is the world of IT ;-) especially when you get hit with a virus or some other program tend to screw your phone up.

You can always reinstall OpenSSH and Automatic SSH but the fix is lost after a reboot.

You can try the following to see if that restores your SSH before actually doing a hard reset or restore (if you never restored your phone before ... you are in for a long journey ... for me I did it way too many times in January 2011).

rm /System/Library/LaunchDaemons/com.ikey.bbot.plist
rm /bin/poc-bbot
rm /bin/sshpass

You can also try doing the following. Make sure you are root before doing this and that you already have MobileTerminal installed. As a practice and as an iPhone power user, ALWAYS install MobileTerminal as the first non-Cydia stock apps. And personally for me, I payed for an application called iFile (yes ... I know there are cracked versions but if you don't support good developers, you are just going to waste their efforts!) which made navigation and editing 10x easier!

Edit /etc/ssh/sshd_config and change the line

from

#ClientAliveInterval 0

to

ClientAliveInterval 60

According to man sshd_config, this line,

Sets a timeout interval in seconds after which if no data has been received from the client, sshd(8) will send a message through the encrypted channel to request a response from the client. The default is 0, indicating that these messages will not be sent to the client. This option applies to protocol version 2 only.

Restart the sshd daemon or better yet, reboot your iPhone for it to take effect.

Good luck!

Monday, August 02, 2010

Jailbreaking the iPhone 3G/3GS with iOS v4.0.1 and new bootrom

First, open up Safari on your iPhone and go to http://www.jailbreakme.com OR http://jailbreakme.modmyi.com. Slide the unlock bar to begin the jailbreaking process. If you are stuck at the 'purple screen of nothingness' ;-),  please ensure that you:

1. From Settings -> Safari -> Set Accept Cookies to NEVER
2. Turn OFF pop-up blocker (this is very important!

Enjoy!

Saturday, July 10, 2010

Permanently Overclocking the Nokia N900 and Modifying the Swappiness

With a LV kernel, do the following:

sudo kernel-config load lv
sudo kernel-config limits 250 805 (if you want your min speed to 250mhz and max to 805mhz. I did mine with 250 and 1150 with no ill-effects atm)
sudo kernel-config save lv8
sudo kernel-config load lv8
sudo kernel-config default lv8

To modify the swappiness of the Nokia N900 which at default is 100 (60 or 30 seems to be the sweet spot for some), do the following:

1. EDIT /etc/init.d/rcS
2. Look for the value 100 for swappiness (it has /proc in it) and change the value 100 to value 60 or 30.
3, SAVE the file.

Again kudos to the forum at Maemo for this ^_^

Nokia N900 Does Work in Japan!

If your Nokia N900 doesn't work in Japan especially if you're using NTT DoCoMo's 3G data-only SIM, try the following as root

dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.net "/com/nokia/csd/gprs" org.freedesktop.DBus.Properties.Set string:com.nokia.csd.GPRS string:AttachMode variant:string:WhenAvailable

Hopefully that will sort this out for you ^_^. Credits goes to the fine folks at the Maemo forums.

Tuesday, July 06, 2010

Kobukuru - Tsubomi (theme song from the 'True Story of Mari' Youtube clip)

The song on the 'True Story of Mari' on Youtube is sung by Kobukuro titled Tsubomi. Here are the lyrics in Japanese and the translation. Original post from ShouraiNoYume ^_^. Tsubomi means flower bud in case you are wondering ...

Lyrics in Japanese

Namida koboshitemo ase ni mamireta egao no naka ja
Dare mo kidzuite wa kurenai
Dakara anata no namida wo boku wa shiranai
Tayasu kotonaku boku no kokoro ni tomosareteita
Yasashii akari wa anata ga kureta riyuu naki ai no akashi
Yawarakana hidamari ga tsutsumu senaka ni botsuri hanashi kakenagara
Itsuka konna hi ga kuru koto mo
Kitto, kitto, kitto, wakatteta hazu na no ni
Kiesou ni sakisou na tsubomi ga kotoshi mo boku wo matteru
Tenohira ja tsukamenai kaze ni odoru hanabira
Tachidomaru kata ni hirari
Jouzu ni nosete waratte miseta anata wo omoidasu hitori
Biru no tanima ni umoreta yume wo itsuka mebuite
Hana wo sagasu darou shinjita yume wa saku basho wo erabanai
Bokura kono machi ni otosareta kageboushi minna hikari wo sagashite
Kasanari au toki no nagare mo
Kitto, kitto, kitto, oikoseru hi ga kuru sa
Kaze no nai senro michi go gatsu no misora wa aoku sabishiku
Ugokanai chigiregumo itsu made mo ukabeteta
Doko ni mo mou modorenai
Boku no you da to sasayaku kaze ni kirari mai ochiteku namida
Chirigiwa ni mou ichido hiraku hanabira wa anata no you ni
kikoenai ganbare wo nigitta ryoute ni nando mo kureta
Kiesou ni sakisou na tsubomi ga kotoshi mo boku wo matteru
Ima mo mada tsukamenai anata to egaita yume
Tachidomaru boku no soba de
Yasashiku hiraku egao no you na tsubomi wo sagashiteru sora ni

Translation in English

just like crying, in the middle of a smile smeared with perspiration
no one can be recognised
thats why i don't know about your tears

its still burning, lighting up my heart
i recieved from you the tender light, proof of unconditional love

while being enveloped by the gentle spot under the sun, i whisper into your back
even if a day like this comes again
surely, surely, surely, you would be able to understand

vanishing and blooming, this year too the flower bud is waiting for me
the petal dancing in the wind that my palm can't grasp
stops on the shoulder lightly
skillfully riding it and showing a smile, i remember you by myself

in the valley of buildings, sometimes buried dreams bud too
isn't that what makes flowers bloom? you can't choose where your dreams will blossom

the silhouettes we dropped on this town, they're all looking for the light
even as time overlaps and flows over itself
surely, surely, surely the day we grow out of this will come

on the breezeless track, the beautiful sky of may feels blue and lonely
the motionless scattered clouds will always be floating
there is no place i can return to anymore
this is the way i am, in the whispering wind it dances to the ground with a flash, my tears

almost scattering, the re-opening petals are like you
giving time and again to these hands that grasp at the silent encouragements

vanishing and blooming, this year too the flower bud is waiting for me
even now i still can't catch the dreams you painted
stopping right beside me
opening gracefully just like a smile, i keep looking for the flower bud, in the sky

The Inspiring Story of Mari and Her Puppies

By the Japan News Group (Originally in Japanese)

Three puppies born on the day of an earthquake

On the fateful morning of October 23, 2004, a dog named Mari gave birth to three puppies in Yamakoshi Village, Niigata Prefecture, Japan. That evening, a severe earthquake struck Niigata and devastated the Village, causing almost all of its homes to collapse, including the one where Mari lived. During the quake the newborn puppies were jolted away from their mother, and since their eyes were still closed, they could not find their way back to her side. Also, because she was bound by a leash, Mari could not reach her babies. She tried repeatedly to pull free from the leash, but to no avail. Then, several tremors occurred and Mari tried even harder to break free until her neck began to bleed. Suddenly, another strong aftershock struck, Mari struggled with all her might, and the collar suddenly came loose. Next she quickly picked up her puppies, moved them to a safe place, and without taking a rest ran toward the ruins that were once her house.

Courageous rescue of grandfather

The grandfather of Mari’s family was home alone that day. He lived on the second floor, but suffered from a neurological disorder that made it impossible for him to stand on his feet or climb the stairs unassisted. After the earthquake, the old man was immobilized as he had been trapped beneath a wardrobe. Aftershocks and the total darkness resulting from a power outage pushed him into desperately thinking that death might be around the corner. Just then, Mari appeared in his room on the second floor and looked at him with encouraging eyes. The grandfather had been slipping into unconsciousness, but when he saw Mari he regained awareness although he was still immobilized. Mari then licked him to give him encouragement and went downstairs several times to check on her pups before quickly returning to the man’s room. She ran back and forth many times even though her paws had been injured by the sharp-edged glass and pieces of porcelain that lay all over the floor. Each trip gave her new wounds, but Mari managed to kindle new hope in the grandfather’s heart, and looking at Mari he thought, “I must live on. I cannot give up,” Finally, he pushed at the wardrobe with all his strength, it gave way and he managed to free himself. Then with Mari's encouragement, the grandfather spent two hours climbing down the stairs—a feat he had previously been unable to accomplish without help. Upon reaching the ground floor, he was happy to find that the three puppies were safe and sound.


A sad parting and further ordeals

After the October 23, 2004 earthquake Yamakoshi Village was in a state of total destruction and isolation as all local roads had been cut off. And with a continuous series of aftershocks increasing the danger of landslides, on October 25 all the villagers were evacuated by helicopter to a nearby accommodation center. Under these circumstances, the grandfather was forced to leave Mari behind for in times of disaster saving human lives is the main concern. He left all of his pet food for his beloved dog, prayed that she and her pups would be safe and took off her collar. Then, with no other options, as he boarded the helicopter to leave behind the one who had saved his life, he said with guilt and sadness, "I’m very sorry, Mari," and felt heart-broken as Mari howled in deep sorrow.
As time passed and her supply of rations ran out, Mari had to search for food in her abandoned village, suffering many ordeals as she tried to protect her little puppies. All the while the grandfather thought of her constantly, and with anxiety over the continuing tremors fell ill and had to be hospitalized. Then two weeks after the evacuation, the villagers were allowed to return to Yamakoshi to see their homes. Among the returnees was the man’s son, who immediately began to search for Mari. Upon finding her, he noticed that she was much thinner, and she hesitated for an instant after hearing her name but then dashed toward him. He held her close in his arms for a long time. Mari had not had enough food for herself, but she fed her babies milk and took care of them as well as she could. In contrast to their skinny mother, the three puppies looked chubby and healthy as they slept sweetly on the porch. The son was delighted to see the little pups growing up in good health.
Before Yamakoshi Village was reconstructed, the villagers remained in temporary housing in a neighboring city. Being in charge of advertising affairs for the village committee, the son was a busy man so he placed Mari and her puppies in the care of another family. When the grandfather was still in the hospital, Mari's caretaker took her to visit him. Thus, after undergoing countless trials, Mari and the old man were finally reunited. Mari was very happy to see the man, who was recuperating and said with quivering lips and tears filling his eyes, "Thank you for saving my life."
Then in April 2005 the grandfather was discharged from the hospital and began living with his son and Mari in an apartment. By that time Mari's three puppies had been adopted by other families and were growing up healthily in their new homes. Today, the grandfather and his family are still living in the apartment but look forward to returning soon to Yamakoshi Village.

Fireworks for Mari

Mari’s touching story, which illustrates the mutual trust and love between humans and animals that helps them through ordeals, has frequently been reported in the news media and has also been adapted as an illustrated storybook — Mari of Yamakoshi Village and Her Three Pups. The book has received a huge response in Japan and serves as a great inspiration for disaster victims. The company that published the volume is contributing part of its sales revenues to the reconstruction and relief funds for areas affected by the October 2004 earthquake, and distributes the book free of charge to children in Yamakoshi Village and its thirteen neighboring cities.
 
On August 2, 2005, the villagers held a fireworks celebration in their city of refuge just as they do in their home town each year, and this year event was entitled “Fireworks for Mari.” While participating in the festivity they wished that Yamakoshi Village could be recovered as quickly as possible. Amid the dazzling light and smoke of the fireworks, Mari's radiant smile seemed to fill the night sky, bringing hope and encouragement to the spectators.