I figured that I would write down my findings somewhere since this is my first time using Frida. This won't cover installing frida, adb, apktool because these are well covered in other sources.
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 11 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | {"lastUpload":"2019-08-09T10:35:07.694Z","extensionVersion":"v3.1.2"} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function virbration() | |
| { | |
| Java.perform(function () { | |
| var Vibrate = Java.use("android.os.Vibrator"); | |
| Java.scheduleOnMainThread(function() { | |
| var activity=Java.use("android.app.ActivityThread").currentApplication().getApplicationContext(); | |
| var wVibrate=Java.cast(activity.getSystemService('vibrator'),Vibrate) | |
| console.log(wVibrate) | |
| wVibrate.vibrate(1000) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | appname: "eru" | |
| entrypoints: | |
| agent: | |
| cmd: "/usr/bin/eru-agent --hostname node1 --config /etc/eru/agent.yaml" | |
| restart: always | |
| publish: | |
| - "12345" | |
| healthcheck: | |
| tcp_ports: | |
| - "12345" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | cd $(dirname $0) | |
| # only support debian/ubuntu | |
| ipv6_enable="true" | |
| if [[ "$(whoami)" != "root" ]];then | |
| echo "should run as root" | |
| exit 1 | |
| fi | |
| if ! [[ -x "$(command -v docker)" ]];then | |
| echo "must install docker" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | echo "wsl port shell start" | |
| wsl_ip=$(wsl.exe bash -c "ip addr show eth0 | grep \"inet\b\""|awk '{print $2}'|cut -d/ -f1) | |
| echo "wsl ip:${wsl_ip}" | |
| echo "port:9001" | |
| netsh interface portproxy add v4tov4 listenport=9001 listenaddress=0.0.0.0 connectport=9001 connectaddress=${wsl_ip} | |
| netsh advfirewall firewall add rule name="ALLOW TCP PORT 9001" dir=in action=allow protocol=TCP localport=9001 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | tasks.withType<Test>{ | |
| onlyIf { System.getenv("test.enable")=="true" } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @Slf4j | |
| public class BizUtils { | |
| public static<R> R invoke(Function<Void,R> function, R defaultValue){ | |
| try { | |
| return function.apply(null); | |
| } catch (Exception e) { | |
| log.error("try method failed", e); | |
| return defaultValue; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @Slf4j | |
| public class RedisLambda { | |
| public static long DEFAULT_DURATION=60*60*24; | |
| public static RedisTemplate getRedisTemplate() | |
| { | |
| RedisTemplate redisTemplate=SpringContextHolder.getBean(RedisTemplate.class); | |
| return redisTemplate; | |
| } | 
OlderNewer