zyrorl / sandrop

Automatically exported from code.google.com/p/sandrop
1 stars 0 forks source link

Reverse proxy feature #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Enable reverse proxy as an option how to intercept traffic

Original issue reported on code.google.com by supp.san...@gmail.com on 23 Jun 2012 at 8:28

GoogleCodeExporter commented 9 years ago
it is more transparent proxy
 -listens on ports 80, 443
 -needs superuser su, iptables to perform redirect 80->8009 443->8010

Original comment by supp.san...@gmail.com on 24 Jun 2012 at 10:15

Attachments:

GoogleCodeExporter commented 9 years ago
//this option should not be enabled if phone is not rooted

    public static boolean isPhoneRooted() {

      // get from build info
      String buildTags = android.os.Build.TAGS;
      if (buildTags != null && buildTags.contains("test-keys")) {
        return true;
      }

      // check if /system/app/Superuser.apk is present
      try {
        File file = new File("/system/app/Superuser.apk");
        if (file.exists()) {
          return true;
        }
      } catch (Throwable e1) {
        // ignore
      }

      return false;
    }

Original comment by supp.san...@gmail.com on 26 Jun 2012 at 4:21

GoogleCodeExporter commented 9 years ago

Original comment by supp.san...@gmail.com on 4 Jul 2012 at 6:21