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
| import ftplib | |
| from datetime import datetime | |
| import argparse | |
| import os | |
| def anonymous_ftp_enum(hostname, port=21, timeout=10): | |
| """ | |
| Log into FTP server with anonymous credentials and enumerate accessible content. | |
| Args: |
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
| #!/usr/bin/env python3 | |
| import argparse | |
| import socket | |
| from urllib.parse import urlparse | |
| def get_ip_addresses(urls): | |
| ip_addresses = [] | |
| for url in urls: | |
| try: |
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
| #!/usr/bin/env python3 | |
| # | |
| # Copyright (c) 2009, Neohapsis, Inc. | |
| # All rights reserved. | |
| # | |
| # Implementation by Greg Ose and Patrick Toomey | |
| # | |
| # Redistribution and use in source and binary forms, with or without modification, | |
| # are permitted provided that the following conditions are met: | |
| # |
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
| #!/bin/bash | |
| get_datetime_from_internet() { | |
| local time_server="http://worldtimeapi.org/api/ip" | |
| local response=$(curl -s "$time_server") | |
| if [[ $? -eq 0 && -n "$response" ]]; then | |
| local new_datetime=$(echo "$response" | grep -oE '"datetime":"[^"]+' | cut -d '"' -f 4) | |
| echo "$new_datetime" | |
| fi | |
| } |