Giter VIP home page Giter VIP logo

jsforward's Introduction

前言

无意中发现了G安全团队的JS-Forward项目,感觉这思路挺好的,自己经常也会遇到金融类比较变态的数据加密,靠这小技巧成功解决了数据加密与篡改;

关于工具的思路与原理请访问该项目查看:

https://github.com/G-Security-Team/JS-Forward

思路挺好的,不过测试了该工具,不太适合我这个金融类的项目,因为APP内置的浏览器https跨域到http阻止了请求,所以加了个证书;再就是没有使用镜像端口转发;而是android端设置WIFI代理为Burp,js请求明文到jsForward中都会经过burp,则篡改数据就由Burp操作;

index

使用方法

请参考G安全团队的JS-Forward项目说明,找到h5加解密方法,加载jquery框架,在加解密方法里插入ajax请求(如果是https的则url地址为https://jsForward监听地址/api/request并且安装jsForward证书、http则是http://jsForward/api/request),/api/response 则是响应解密(为了区分请求和响应,所以设计了两个接口)

index

真实案例:一个金融类APP的H5,可看到请求和响应都是加密的,最恶心的是秘钥是动态的(上一个请求返回包里的),并且解密了该数据包,还发现另一层加密,恶心至极;

index

通过在加密前把明文发到到burp中进行篡改,在返回给app进行加密:

index

同样的,响应包解密后也发送到burp中便于查看:

index

jsforward's People

Contributors

ctf-missfeng 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.