Code Monkey home page Code Monkey logo

wadl-dumper's Introduction

wadl-dumper

Dump all available paths and/ endpoints on WADL file.

Installation

  • Download a prebuilt binary from releases page, unpack and run! or
  • If you have go1.13+ compiler installed: go get github.com/dwisiswant0/wadl-dumper

Usage

It's very simple!

$ wadl-dumper -i https://domain.tld/application.wadl

Flags

Usage:
  wadl-dumper -i http://domain.tld/application.wadl [options...]
  wadl-dumper -i /path/to/wadl.xml --show-base -r "-alert(1)-"

Options:
  -i, --input <URL/FILE>         URL/path to WADL file
  -b, --show-base                Add base URL to paths
  -r, --replace <string>         Replace all placeholder with given value
  -h, --help                     Show its help text

Show Base URL

By default, wadl-dumper doesn't add a base URL to each paths, use -b/--show-base flag to add it.

$ wadl-dumper -i https://beacon.netflix.com/application.wadl -b
http://nmtracking.netflix.com/users/customerevents
http://nmtracking.netflix.com/nm
http://nmtracking.netflix.com/tracking
http://nmtracking.netflix.com/itracking
http://nmtracking.netflix.com/track
http://nmtracking.netflix.com/{subResources:.*}
http://nmtracking.netflix.com/users
http://nmtracking.netflix.com/presentationtracking

Replace Placeholder

You can also replace all {placeholder} values in each paths with -r/--replace flag.

$ wadl-dumper -i https://tw.bid.yahoo.com/api/application.wadl -b -r "-alert(1)-"
http://auc-papi.bid.yahoo.com:4080/api/api/-alert(1)-
http://auc-papi.bid.yahoo.com:4080/api/campaigns/-alert(1)-
http://auc-papi.bid.yahoo.com:4080/api/escrows/-alert(1)-
http://auc-papi.bid.yahoo.com:4080/api/p2ppListing/-alert(1)-
http://auc-papi.bid.yahoo.com:4080/api/channels/-alert(1)-
http://auc-papi.bid.yahoo.com:4080/api/channels/-alert(1)-/readInfo
http://auc-papi.bid.yahoo.com:4080/api/channels/-alert(1)-/members
http://auc-papi.bid.yahoo.com:4080/api/users/-alert(1)-/qnas
http://auc-papi.bid.yahoo.com:4080/api/users/-alert(1)-
http://auc-papi.bid.yahoo.com:4080/api/users/-alert(1)-/ranking
http://auc-papi.bid.yahoo.com:4080/api/users/-alert(1)-/rating
...

Supporting Materials/References

License

wadl-dumper is released under MIT. See LICENSE.

wadl-dumper's People

Contributors

dependabot[bot] avatar dwisiswant0 avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wadl-dumper's Issues

panic: runtime error: invalid memory address or nil pointer dereference

hello.thanks for this project... i have this error with "go1.15 linux/amd64"


cyberthereaper@cyberthereaper:~$    wadl-dumper -i https://example.com

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x6aa7aa]

goroutine 1 [running]:
github.com/antchfx/xmlquery.(*Node).InnerText.func1(0xc00018e360, 0x0)
        /home/cyberthereaper/go/src/github.com/antchfx/xmlquery/node.go:50 +0x2a
github.com/antchfx/xmlquery.(*Node).InnerText(0x0, 0x73cb53, 0x14)
        /home/cyberthereaper/go/src/github.com/antchfx/xmlquery/node.go:62 +0x87
main.main()
        /home/cyberthereaper/go/src/github.com/dwisiswant0/wadl-dumper/main.go:100 +0xe5

I also tried on different server and got the same error with go1.15.2 linux/amd64

Error! Can't parse WADL file.

Describe the bug

This bugs occurs when the target has insecure SSL

To Reproduce

wadl-dumper -i "https://customerevents.us-east-1.internal.dradis.netflix.com/application.wadl?detail=true" -b

Expected behavior

Output all the possible paths in the wadl directory

Screenshots

screenshot

Environment (please complete the following information):

  • OS: Ubuntu 20.04
  • OS version: [uname -a]
  • wadl-dumper Version:

Additional context
Add any other context about the problem here. Full output log is probably a helpful thing to add here.

工具有问题,工具就是单纯的解析url然后提取出url,并没有把url进行组合。而实际上如果要正确访问目标,需要将url进行组合才能访问。

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. mac, linux]
  • OS version: [uname -a]
  • wadl-dumper Version:

Additional context
Add any other context about the problem here. Full output log is probably a helpful thing to add here.

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.