Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Does not work when installed as a package

Web-CTF-Help

Description

A simple set of scripts (mainly scrapers for now) intended for aid in web CTFs. Find image sources (and alts), javascript sources and comments.

Usage

usage: webctf [-h] [-v] [--comments] [--scripts] [--images] [--headers] [-f] url

positional arguments:
  url            URL of the target website

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit
  --comments     only display HTML comments (default: False)
  --scripts      only display script sources (default: False)
  --images       only display image sources (default: False)
  --headers      only display interesting response headers (combine with -f to display all) (default: False)
  -f, --full     enable full output for all options (default: False)
webctf https://example.com

Only display HTML commens and script sources:

webctf --comments --scripts https://example.com
=============
COMMENTS
=============

[+] 1 :   Internal game scripts/styles, mostly boring stuff
[+] 2 :   This is our database of messages

=============
SCRIPTS
=============

[+] 1 : /static/game-frame.js
[+] 2 : /static/post-store.js

Only display interesting headers:

webctf --headers https://example.com
===================
INTERESTING HEADERS
===================

Server : Google Frontend

Display all headers:

webctf --headers -f https://example.com
=============
ALL HEADERS
=============

Content-Type : text/html; charset=utf-8
Cache-Control : no-cache
X-Cloud-Trace-Context : df6d1758c776f4fbc4b3bab158818b64;o=1
Date : Fri, 01 Jan 2021 20:19:57 GMT
Server : Google Frontend
Content-Length : 2689
Alt-Svc : h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"

Installation

git clone https://github.com/xnomas/web-ctf-help
pip install -r requirements.txt
pip install -e .

Future plans

I plan to implement a download function, to download the images, js files and so on. If you have any suggestions feel free to give them to me, but please keep in mind that I am still a student :)

Metadata

Release files for webctf 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for webctf 0.0.0
File Size Uploaded
webctf-0.0.0.tar.gz 15.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for webctf 0.0.0
File Interpreter ABI Platform
webctf-0.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / webctf-0.0.0.tar.gz

Download URL webctf-0.0.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5e8afce61283278a34db2814da281099e3db61239845d316188f88a2963abed7
BLAKE2b-256 checksum
How to use checksums
d646cc2f08a99f4f8a9db02939b75f8e1c5e21dfcc07ee864b46fe654c71c382
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.4

Release files / webctf-0.0.0-py3-none-any.whl

Download URL webctf-0.0.0-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2e17c595dfd01d44288aa42d23916ea77135b0660532a746352d91995fe843e
BLAKE2b-256 checksum
How to use checksums
56841f92ea4dc3d14065b110a64b1e071a4afacf0894c175b62454cf88fbec07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page