Sunday, 17 July 2016

eToken BCR | bypass root check | smali code modification



I've been strugling for a while now with getting a Romanian internet banking app (eToken BCR) to work on systemless root on my Nexus5.
After dumping it for a while, I've decided to decompile or 'reverse engineer' it and see what's there. Used a little info from here: http://bertonjulian.github.io/2015/0...on-bypass.html .
I've used apktool to pull out all the smali code files and searched them for 'rooted' in Sublime Text 2.
There is only one file containing the root check but the problem is I'm not even close to understanding smali, I mean I have a little C++ knowledge and I can follow up pretty good, but I'm not familiar with it at all.
Can someone help me bypass this check? pretty please? :)

https://drive.google.com/file/d/0B0Y...ew?usp=sharing - the file containing the root check

I guess this part of the file needs tweaking:

# direct methods
.method public constructor <init>()V
.locals 2
.prologue
.line 17
invoke-direct {p0}, Lts;-><init>()V
.line 19
const-string v0, "ignore"
iput-object v0, p0, Lsq;->a:Ljava/lang/String;
.line 21
const-string v0, "RootDetection"
const-string v1, "Your device is jailbroken or rooted. The application cannot be executed."
invoke-virtual {p0, v0, v1}, Lsq;->c(Ljava/lang/String;Ljava/lang/String ; )V

.line 22
return-void
.end method


thanks thanks



No comments:

Post a Comment