Skip to content
/ prpr Public
forked from raohwork/prpr

Simple server for fetching static web pages using Firefox Marionette

Notifications You must be signed in to change notification settings

JokerCatz/prpr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple application fetching static HTML via Firefox Marionette.

It is designed most for internal using. YOU HAVE TO PREVENT SECURITY ISSUE YOURSELF.

Configuration

Prpr accepts following environmental variables:

  • SECRET: shared secret. Default to "" which disables authenticating.
  • FIREFOX: path to Firefox binary. Default to "firefox".
  • BIND: binding address passed to ListenAndServe. Default to ":9801".

Usage

wget \
  --post-data='uri=http://google.com&wait=queryString&secret=mysecret' \
  http://127.0.0.1:9801/grab
  • uri: URL you want to fetch from.
  • wait: CSS-selector to wait for.
  • secret: your shared secret.

It returns HTML code if success, 400 if shared secret mismatch and 500 when failed.

WARNING

  • To keep code simple, prpr just waits 10 seconds before actually connect to firefox. IT DOES NOT SUPPORT RECONNECTING.
  • For best security, DO NOT EXPOSE IT TO PUBLIC NETWORK.

MAKE SURE YOU KNOW WHAT YOU ARE FETCHING!

License

WTFPL

About

Simple server for fetching static web pages using Firefox Marionette

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.4%
  • Go 28.3%
  • Shell 19.2%
  • Dockerfile 5.1%