View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#251
Originally Posted by allnameswereout View Post
Will this work? Can anyone compile this?
Bump from the past, you don't work on this anymore, but still...

Some problems, you've now taken over the fopen function but you only return something if the path is the "/sys/..." which means anything else fails

Also, fopen is not the function used to check for that file (at least according to this printf of the files it is opening), I'll try and ltrace and see which function it is.

Strace says: "open("/sys/devices/platform/wlan-omap/cal_mac_address", O_RDONLY)" but the LD_PRELOADED library does not register cal_mac_address as passing through it.

As strace says, open is the function that I needed to intercept.

--

Meh, made a LD_PRELOADable library but I'd still get licensing error. Made sed change the /sys string in the binary and I'd get the same so I thought **** it.

So I made a little package instead.
Modified macchanger to print random macs instead, capitalise the letters and made a script that launches it with a new mac when you need it.
It also sets up pinning (but does not remove it when uninstalling, you do that yourself).

1. Install http://catalogue.tableteer.nokia.com...77-1_armel.deb (it *has* to be 2.2.6.377)
2. Install http://freefile.kristopherw.us/uploa..._1.0_armel.deb
3. Run "Map (New MAC)", request a free trial. Let it restart.

When the trial expires, run "Map (New MAC)" and request trial. When you need to use Map (with the fake MAC that still works for a trial), run "Map (Old Fake MAC)".

When you uninstall, everything is restored,sans pinning, so remove relevant entries from /etc/apt/preferences manually.

Source: http://freefile.kristopherw.us/uploa...set_1.0.tar.gz

Last edited by qwerty12; 2009-06-06 at 17:15.
 

The Following 4 Users Say Thank You to qwerty12 For This Useful Post: