Giter Club home page Giter Club logo

unidbg-server's Introduction

unidbg-server

springboot运行unidbg

使用方式:

1.加载到idea

2.add 个maven工程

3.运行 UnidbgServerApplication.java 即可启动服务

修改配置和代码

通过 application.properties 自行修改服务的地址(默认0.0.0.0就行)和端口(默认是9090)

Controller示例文件文件参考SignController.py

打jar包

配置好maven环境的前提下,项目主目录执行

 mvn clean package -Dmaven.test.skip=true  

使用maven的package即可,之后会发现生成一个target目录其中里面就有jar包了。

mvn package

使用jar包

java -jar target\unidbg-server-0.0.2.jar 

curl调用示例

curl -XGET 'http://127.0.0.1:9090/unidbg/dySign?url=https://aweme-eagle.snssdk.com/aweme/v1/feed/?type=0%26max_cursor=0%26min_cursor=-1%26count=30%26volume=0.06666666666666667%26pull_type=2%26need_relieve_aweme=0%26ts=1604989727%26app_type=lite%26manifest_version_code=180%26_rticket=1604989727594%26ac=wifi%26device_id=123411234%26iid=123411234%26os_version=8.1.0%26channel=xiaoshangdian_douyin_and19%26version_code=180%26device_type=Pixel%26language=zh%26resolution=1080*1758%26openudid=2dc3087ecc9addf9%26update_version_code=1800%26app_name=aweme%26version_name=1.8.0%26os_api=27%26device_brand=google%26ssmix=a%26device_platform=android%26dpi=540%26aid=1128'

Python调用示例

import requests
url = 'http://127.0.0.1:9090/unidbg/dySign'
data = {'url': 'https://aweme-eagle.snssdk.com/aweme/v1/feed/?type=0&max_cursor=0&min_cursor=-1&count=30&volume=0.06666666666666667&pull_type=2&need_relieve_aweme=0&ts=1604989727&app_type=lite&manifest_version_code=180&_rticket=1604989727594&ac=wifi&device_id=123411234&iid=123411234&os_version=8.1.0&channel=xiaoshangdian_douyin_and19&version_code=180&device_type=Pixel&language=zh&resolution=1080*1758&openudid=2dc3087ecc9addf9&update_version_code=1800&app_name=aweme&version_name=1.8.0&os_api=27&device_brand=google&ssmix=a&device_platform=android&dpi=540&aid=1128'}
req=requests.post(url,data=data)
print(req.json())

当前问题:

springboot使用unidbg遇到logback和sl4j依赖冲突 目前通过pom.xml暂时解决了

感谢

https://github.com/zhkl0228/unidbg

unidbg-server's People

Contributors

cxapython avatar gae666 avatar anjia0532 avatar

Watchers

James Cloos 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.