Skip to content
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

new: implemented optional execution via ssh #9

Merged
merged 4 commits into from
Nov 12, 2024
Merged

Conversation

evilsocket
Copy link
Collaborator

No description provided.

@evilsocket
Copy link
Collaborator Author

evilsocket commented Nov 8, 2024

@GangGreenTemperTatum before merging this I could use some help with testing - as per README:

The run and serve commands support an optional SSH connection string. If provided, commands will be executed over SSH on the given host.

robopages serve --ssh user@host:port --ssh-key ~/.ssh/id_ed25519

Important

  • Setting a SSH connection string will override any container configuration.
  • If the function requires sudo, the remote host is expected to have passwordless sudo access.

I tested with:

robopages run -F nmap_tcp_ports_syn_scan --ssh 'my-home-serve.local'

Can you give it a try with a function of your choice? thanks

@GangGreenTemperTatum
Copy link
Contributor

robopages serve --ssh 

ofc, more than happy to!! 😁 sorry for the delay 🦷 , awesome new feature, this is sick!

➜  robopages-cli git:(feature/ssh) robopages serve --ssh ec2-user@radads:22 --ssh-key ~/.ssh/radads
[2024-11-08T17:20:04Z INFO ] testing ssh connection to radads:22 ...
[2024-11-08T17:20:05Z INFO ] pre building container for function trufflehog_scan ...
[2024-11-08T17:20:07Z INFO ] pre building container for function python_exec ...
[2024-11-08T17:20:07Z INFO ] pre building container for function virustotal_hash_lookup ...
[2024-11-08T17:20:07Z INFO ] pre building container for function amass_enum ...
[2024-11-08T17:20:07Z INFO ] pre building container for function amass_intel ...
[2024-11-08T17:20:07Z INFO ] pre building container for function arjun_http_method_target_scan ...
[2024-11-08T17:20:07Z INFO ] pre building container for function arjun_target_scan ...
[2024-11-08T17:20:07Z INFO ] pre building container for function arjun_target_scan_osint ...
[2024-11-08T17:20:07Z INFO ] pre building container for function enum_host_subdomains ...
[2024-11-08T17:20:07Z INFO ] pre building container for function feroxbuster_bruteforce_file_extensions ...
[2024-11-08T17:20:07Z INFO ] pre building container for function feroxbuster_burp_bruteforce_file_extensions ...
[2024-11-08T17:20:07Z INFO ] pre building container for function feroxbuster_burp_extract_links_from_responses ...
[2024-11-08T17:20:07Z INFO ] pre building container for function feroxbuster_burp_random_user_agent_scan ...
[2024-11-08T17:20:07Z INFO ] pre building container for function graphinder_url_scan ...
[2024-11-08T17:20:07Z INFO ] pre building container for function httpx_tech_detect ...
[2024-11-08T17:20:07Z INFO ] pre building container for function katana_headless_crawler ...
[2024-11-08T17:20:07Z INFO ] pre building container for function katana_proxied_crawler_scope ...
[2024-11-08T17:20:07Z INFO ] pre building container for function nmap_tcp_ports_syn_scan ...
[2024-11-08T17:20:07Z INFO ] building image 'nmap_local' from '/Users/ads/.robopages/robopages-main/cybersecurity/offensive/information-gathering/nmap.Dockerfile'
[2024-11-08T17:20:11Z INFO ] sha256:843cb5cfb837c13ed3f1d141b629fba341a0e05255c7d89ebe8c3bc05b2a2e26
[2024-11-08T17:20:11Z INFO ] pre building container for function nmap_udp_ports_scan ...
[2024-11-08T17:20:11Z INFO ] building image 'nmap_local' from '/Users/ads/.robopages/robopages-main/cybersecurity/offensive/information-gathering/nmap.Dockerfile'
[2024-11-08T17:20:12Z INFO ] sha256:dd89e0cfd12c29456cd55719d9f4c5d593abae5a16310bb56dc4d21d80bec667
[2024-11-08T17:20:12Z INFO ] pre building container for function scapy_arp_network_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function scapy_basic_arp_network_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function scapy_dns_query ...
[2024-11-08T17:20:12Z INFO ] pre building container for function scapy_icmp_ping ...
[2024-11-08T17:20:12Z INFO ] pre building container for function scapy_tcp_syn_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function scapy_tcp_traceroute ...
[2024-11-08T17:20:12Z INFO ] pre building container for function nikto_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function nuclei_basic_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function nuclei_severity_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function nuclei_tag_template_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function sqlmap_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function wpscan_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function wpscan_scan_stealthy ...
[2024-11-08T17:20:12Z INFO ] pre building container for function zap_api_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function zap_authenticated_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function zap_baseline_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function zap_full_scan ...
[2024-11-08T17:20:12Z INFO ] pre building container for function zap_scan_host_container ...
[2024-11-08T17:20:12Z INFO ] pre building container for function zap_scan_host_os_app ...
[2024-11-08T17:20:12Z INFO ] pre building container for function http_get ...
[2024-11-08T17:20:13Z INFO ] pre building container for function http_post ...
[2024-11-08T17:20:13Z INFO ] serving 21 pages on http://127.0.0.1:8000 with 12 max running tasks

it's a plain VM which is why i think the functions aren't loading, or there's something missing in the robopages themselves as the containers are building. dropped you a DM :)

@GangGreenTemperTatum
Copy link
Contributor

it's a plain VM which is why i think the functions aren't loading, or there's something missing in the robopages themselves as the containers are building. dropped you a DM :)

nope, just me being dumb because the binaries didn't exist on the remote VM :) ie:

Setting a SSH connection string will override any container configuration.

all working @evilsocket , this is straight up fire!! 🔥 plmk if you need anything else :)

@evilsocket evilsocket merged commit 59968bc into main Nov 12, 2024
1 check passed
@evilsocket evilsocket deleted the feature/ssh branch November 12, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants