Git Product home page Git Product logo

sshdroid's Introduction

SSHDroid

给android app提供的一个sshd服务,起主要作用是提供一个交互式的shell工具, 我们可以通过他访问app的内部数据文件。

请注意本服务和android原生adb是不冲突的,因为adb无法访问app私有文件目录,SSHDroid则通过插件注入的方式将私有文件系统暴露出来

运行

  1. 复制文件: app/src/main/assets/config.template.properties-> app/src/main/assets/config.properties
  2. 修改内容
    • targetPackage: 需要被注入的进程
    • ssdServerPort: 启动的端口号,请注意不要和其他服务冲突
    • newProcess: 是否需要在新进程中启动,如果你的app开启了分身,那么最好将这个配置设置为true。因为分身功能将会破坏原有文件系统(特别是平头哥系统)
  3. 安装并运行插件
  4. 在电脑上面运行adb forward,如: adb forward tcp:3478 tcp:3478
  5. 使用电脑连接服务,如:
    • ssh 127.0.0.1 -p 3478 登陆shell
    • scp -P 3478 ./test.txt 127.0.0.1:/data/data/xxx/files/
    • scp -P 3478 127.0.0.1:/data/data/xxx/files/aaa.log ~/Desktop/

自动化和集群化

请基于当前工具做二次封装

sshdroid's People

Contributors

virjar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.