--
You received this message because you are subscribed to the Google Groups "dare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dare-android...@googlegroups.com.
To post to this group, send email to dare-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dare-android/18b6b9e7-ac17-4970-a7c7-a1f23ca374fb%40googlegroups.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,
I had issues with Soot in Ubuntu with errors like “Are you
sure soot is on the classpath?” and or quite often than not Soot gets caught in
an endless loop trying to perform some action over and over.
I have found that I can usually get some java code out by running the tests
twice. One with this code:
./dare -c -p -b -d <directory> <app>.apk
If that does not produce .java (even though I give it the –d switch) I will run it again with this:
./dare -p -e -c -o –d <directory> <app>.apk
This almost always produces .java output.
In Windows it never initiates because it cannot establish a classpath? I can
even run it inside the java directory next to the exe and Soot cannot locate
the classpath? Is this similar to Python with its Pth file? Does Linux Java
have its one internal environment settings? I believe theses are initiated at
boottime via fstab or something like that? For what ever reason the Soot does
not find the classpath. The other two do, both Jasmin and .dare (and dava) as a
whole manage to find the class path, either that or they don’t bitch and whinge
about not seeing it?
Inside of Windows I am always getting a binary error for dare-1.0.2-launcher?
Even though I call dare with
java –jar dare -c -p -b -d <directory>
<app>.apk
I get the error “Error: Invalid or corrupt jar file”.
Running inside of Cygwin I get this:
:dare line 51 dare-launcher-1.0.2: cannot execute binary file
I initially had line ending problems with the scripts being run inside Cygwin.
So I run my own clean routine on the scripts and this allows them to execute.
This is my cmd batch script called clean. That sits right
next to a linux bash script also called clean.sh
@echo off
setlocal
if not exist "%~dpn0.sh" echo Script "%~dpn0.sh" not found & exit 2
set _CYGBIN=C:\cygwin\bin
if not exist "%_CYGBIN%" echo Couldn't find Cygwin at "%_CYGBIN%" & exit 3
:: Resolve ___.sh to /cygdrive based *nix path and store in %_CYGSCRIPT%
for /f "delims=" %%A in ('%_CYGBIN%\cygpath.exe "%~dpn0.sh"') do set _CYGSCRIPT=%%A
:: Throw away temporary env vars and invoke script, passing any args that were passed to us
endlocal & %_CYGBIN%\bash --login "%_CYGSCRIPT%" %*
pause
ren dare dare_backup
ren dare.sh dare
ren dare-1.0.2 dare-1.0.2_backup
ren dare-1.0.2.sh dare-1.0.2
ren dex-preopt dex-preopt_backup
ren dex-preopt.sh dex-preopt
ren dare-launcher-1.0.2 dare-launcher-1.0.2_backup
ren dare-launcher-1.0.2.sh dare-launcher-1.0.2
exit
This script is run from Command prompt in the same location
as bash shell but prior running anything else. It creates a backup of the
files, cleans the line endings with sed and produces new bash shell scripts and
renamed back to the same executables as was started with.
#!/bin/sh
echo "Cleaning Dare bash scripts"
cd dare && cat dare | sed '/\015/d' >dare.sh && cat dex-preopt | sed '/\015/d' >dex-preopt.sh && cat dare-1.0.2 | sed '/\015/d' >dare-1.0.2.sh && cat dare-launcher-1.0.2 | sed '/\015/d' >dare-launcher-1.0.2.sh
After this however the dare-launcher-1.0.2 script when I
open it to view is corrupted badly? Even after several downloads from both
chrome and IE browsers produce the same corrupted file?
I assume that this is the same corrupt error that I am getting from within
command prompt?
How this provides some insight. I really hope to port this properly over to Windows so I can eventually work on polishing something that can be rerun inside Eclipse. To date I believe that there is only JEB (which is super expensive) that is capable of achieving this?
I have been using these tools to target Malware. Just last week I was able to identify two new Malware apps on Google Play store that have been there for months undetected. I also logged one with adb attempting to send a mass payload outgoing sms to premium sms fraud site. Your application has been instrumental in helping me break down this otherwise difficult to read code. It also helps me get an understanding of what smali is doing and I don't have to sit there with a freakin hex calculator trying to get number strings for variables lol.
So thank you in advance. I appreciate all that you guys are doing. I hope I can serve to help more people cross platforms :)
Regards
James
--
You received this message because you are subscribed to a topic in the Google Groups "dare" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dare-android/RCn-DUI-Rnk/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to dare-android...@googlegroups.com.
To post to this group, send email to dare-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dare-android/02B7A038-CAE5-4C1F-8B38-531BAC0612DB%40gmail.com?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msgid/dare-android/CANBbQO8%3D_e_R%2BBsPi5L1-iJQdRZN2SPQoAsrwZJjxKG_6UHVhw%40mail.gmail.com.