Coder Social home page Coder Social logo

remotejs's Introduction

remotejs

remote execute js when debugger.paused (use CDP) 基于CDP实现的远程JS debug工具

example

前置条件, 需要安装chrome

# 查看帮助
./remotejs -h
GLOBAL OPTIONS:
   --url value, -u value            open url when open chrome, default blank url
   --chrome-path value, --cp value  use specified chrome path
   --proxy value                    set proxy for browser
   --remote-debug-address value     use remote chrome debugging
   --web-listen value               web server port (default: "8088")
   --help, -h                       show help
   

./remotejs                                              # 打开一个空白的浏览器
./remotejs -u [URL]                                     # 打开一个浏览器,并加载指定url
./remotejs --remote-debug-address "ws://127.0.0.1:9222" # 指定一个远程浏览器(需要目标开remote-debugger-port)

# 调用方法
请求 `curl -X POST "http://127.0.0.1:8088/remote" -d "eval=myMask.target.id"`
响应 
`{"type":"string","value":"ext-comp-1009"}`


# 其他看 --help

Todos (下次一定的事情)

  • 多tab的debugPauseEvent捕获
  • 配置文件
  • 其他

remotejs's People

Contributors

1oid avatar

Stargazers

 avatar  avatar xq17 avatar 4ut15m avatar 白马寺 avatar happycoder avatar  avatar Xeldax avatar  avatar  avatar  avatar K3vin avatar Michael Cade avatar iak3ec avatar 一灯 avatar lvmaple avatar  avatar eee avatar 98Kstar avatar GithubAutoBackupBot avatar ZFYy1 avatar  avatar  avatar Jiaxi ® avatar youxiyouxi avatar  avatar  avatar  avatar  avatar 0xFF avatar  avatar  avatar  avatar st0p avatar  avatar flystart avatar lioders avatar  avatar  avatar ZhangSan avatar

Watchers

 avatar

Forkers

nu0l test80sec

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.