-
Notifications
You must be signed in to change notification settings - Fork 4
feat: eyewitness robopage #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
evilsocket
merged 3 commits into
main
from
ads/eng-1003-robopages-create-robopages-for-eyewitness
Feb 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
cybersecurity/offensive/information-gathering/eyewitness.Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| FROM debian:bookworm | ||
|
|
||
| # Install dependencies | ||
| RUN apt-get update && apt-get install -y \ | ||
| git \ | ||
| wget \ | ||
| cmake \ | ||
| python3 \ | ||
| xvfb \ | ||
| python3-pip \ | ||
| python3-netaddr \ | ||
| python3-dev \ | ||
| firefox-esr \ | ||
| python3-venv \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Clone EyeWitness | ||
| RUN git clone --depth 1 https://github.com/RedSiege/EyeWitness.git /EyeWitness | ||
| WORKDIR /EyeWitness | ||
|
|
||
| # Setup Python virtual environment and dependencies | ||
| RUN python3 -m venv venv && \ | ||
| . venv/bin/activate && \ | ||
| python3 -m pip install \ | ||
| fuzzywuzzy \ | ||
| selenium==4.9.1 \ | ||
| python-Levenshtein \ | ||
| pyvirtualdisplay \ | ||
| netaddr && \ | ||
| cd Python/setup && \ | ||
| ./setup.sh | ||
|
|
||
| # Set environment variables | ||
| ENV TERM=xterm \ | ||
| SCREENSHOT_DIR=/eyewitness/screens \ | ||
| LOGDIR=/eyewitness/logs | ||
|
|
||
| # Create directories and selenium log path | ||
| RUN mkdir -p /eyewitness/screens /eyewitness/logs | ||
|
|
||
| # Create wrapper script to handle venv activation and Xvfb | ||
| RUN echo '#!/bin/bash\n\ | ||
| source /EyeWitness/venv/bin/activate\n\ | ||
| mkdir -p "$SCREENSHOT_DIR"\n\ | ||
| xvfb-run --server-args="-screen 0, 1024x768x24" \\\n\ | ||
| python3 /EyeWitness/Python/EyeWitness.py \\\n\ | ||
| --selenium-log-path "$LOGDIR" "$@"' > /usr/local/bin/run-eyewitness && \ | ||
| chmod +x /usr/local/bin/run-eyewitness | ||
|
|
||
| VOLUME ["/eyewitness"] | ||
| WORKDIR /eyewitness | ||
|
|
||
| ENTRYPOINT ["/usr/local/bin/run-eyewitness"] |
125 changes: 125 additions & 0 deletions
125
cybersecurity/offensive/information-gathering/eyewitness.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| description: > | ||
| EyeWitness is designed to take screenshots of websites, provide some server header info, and identify default credentials if possible. | ||
|
|
||
| functions: | ||
| eyewitness_single: | ||
| description: Capture screenshot and information from a single URL | ||
| parameters: | ||
| target: | ||
| type: string | ||
| description: The URL to capture | ||
| examples: | ||
| - https://example.com | ||
|
|
||
| container: | ||
| platform: linux/amd64 | ||
| build: | ||
| path: ${cwd}/eyewitness.Dockerfile | ||
| name: eyewitness_local | ||
| volumes: | ||
| - ${cwd}/eyewitness:/eyewitness | ||
|
|
||
| cmdline: | ||
| - --headless | ||
| - --web | ||
| - --single | ||
| - ${target} | ||
| - --no-prompt | ||
| - -d | ||
| - /eyewitness/screens/report | ||
|
|
||
| eyewitness_file: | ||
| description: Capture screenshots and information from a file containing URLs | ||
| parameters: | ||
| target_file: | ||
| type: string | ||
| description: File containing URLs to scan (one per line) | ||
| examples: | ||
| - urls.txt | ||
|
|
||
| container: | ||
| platform: linux/amd64 | ||
| build: | ||
| path: ${cwd}/eyewitness.Dockerfile | ||
| name: eyewitness_local | ||
| volumes: | ||
| - ${cwd}/eyewitness:/eyewitness | ||
| - ${cwd}/${target_file}:/eyewitness/targets.txt | ||
|
|
||
| cmdline: | ||
| - --headless | ||
| - --web | ||
| - -f | ||
| - /eyewitness/targets.txt | ||
| - --no-prompt | ||
| - -d | ||
| - /eyewitness/screens/report | ||
|
|
||
| eyewitness_nmap_xml: | ||
| description: Capture screenshots from a Nmap XML output file | ||
| parameters: | ||
| xml_file: | ||
| type: string | ||
| description: Path to Nmap XML output file | ||
| examples: | ||
| - nmap_output.xml | ||
|
|
||
| container: | ||
| platform: linux/amd64 | ||
| build: | ||
| path: ${cwd}/eyewitness.Dockerfile | ||
| name: eyewitness_local | ||
| volumes: | ||
| - ${cwd}/eyewitness:/eyewitness | ||
| - ${cwd}/${xml_file}:/eyewitness/scan.xml | ||
|
|
||
| cmdline: | ||
| - --headless | ||
| - --web | ||
| - -x | ||
| - /eyewitness/scan.xml | ||
|
GangGreenTemperTatum marked this conversation as resolved.
Outdated
|
||
| - --no-prompt | ||
| - -d | ||
| - /eyewitness/screens/report | ||
|
|
||
| eyewitness_custom_ports: | ||
| description: Scan specific URLs with custom HTTP/HTTPS ports | ||
| parameters: | ||
| target: | ||
| type: string | ||
| description: The URL to capture | ||
| examples: | ||
| - https://example.com | ||
| http_ports: | ||
| type: string | ||
| description: Additional HTTP ports (comma-separated) | ||
| examples: | ||
| - "8080,8081" | ||
| default: "" | ||
| https_ports: | ||
| type: string | ||
| description: Additional HTTPS ports (comma-separated) | ||
| examples: | ||
| - "8443,9443" | ||
| default: "" | ||
|
|
||
| container: | ||
| platform: linux/amd64 | ||
| build: | ||
| path: ${cwd}/eyewitness.Dockerfile | ||
| name: eyewitness_local | ||
| volumes: | ||
| - ${cwd}/eyewitness:/eyewitness | ||
|
|
||
| cmdline: | ||
| - --headless | ||
| - --web | ||
| - --single | ||
| - ${target} | ||
| - --no-prompt | ||
| - --add-http-ports | ||
| - ${http_ports} | ||
| - --add-https-ports | ||
| - ${https_ports} | ||
| - -d | ||
| - /eyewitness/screens/report | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.