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

Updated this for ya! #5

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Commits on Sep 6, 2024

  1. Update sharesniffer.py

    1. New Argument (--nmapdatadir): Users can specify their own NSE script directory using this argument. If they don't, the script will look for it in default directories.
    
    2. Directory Check: If the user provides a directory that doesn’t exist, the script will notify them and exit.
    
    3. Dynamic NSE Script Path Detection: If no custom path is given, the script will try to locate it using common paths (/usr/local/share/nmap/scripts, /usr/share/nmap/scripts).
    
    4. Error Handling for Missing Directories: If the script cannot find the NSE script directory, it will exit with an error message.
    FashyGainz authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    48744c4 View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG.md

    FashyGainz authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    afd3bdc View commit details
    Browse the repository at this point in the history
  3. Create .todos

    FashyGainz authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    c3064d0 View commit details
    Browse the repository at this point in the history
  4. Update CHANGELOG.md

    FashyGainz authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    44a9695 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. Update README.md

    FashyGainz authored Sep 8, 2024
    Configuration menu
    Copy the full SHA
    1e36470 View commit details
    Browse the repository at this point in the history
  2. Update get_nfs_shares

    Function erroring out because it assumes nfsls4 exists which is risky af. The condition if len(nfsls) > 4 ensures that nfsls[4] exists before attempting to access it. This prevents the IndexError from being raised when nfsls has fewer elements.
    FashyGainz authored Sep 8, 2024
    Configuration menu
    Copy the full SHA
    9b867bb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    56baca0 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Fixed sniffer class

    moved the get_host_ranges method into the sniffer class, ensuring that it can be accessed using self.get_host_ranges() as expected
    FashyGainz authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    5fe9a34 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    459dada View commit details
    Browse the repository at this point in the history
  3. added nmapargs

    FashyGainz authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    d09ffe4 View commit details
    Browse the repository at this point in the history
  4. Fixed using cidr notation

    expand_cidr Method:
    
    This method takes a CIDR notation (like 10.185.80.0/24) and expands it into individual IP addresses using the ipaddress module.
    It handles errors if an invalid CIDR is provided.
    Modified sniff_hosts:
    
    When CIDR notation is detected in the hosts string, it expands the range using the expand_cidr method. This generates a list of individual IP addresses that can be scanned.
    FashyGainz authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    5d44791 View commit details
    Browse the repository at this point in the history
  5. Update sharesniffer.py

    FashyGainz authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    0b833e2 View commit details
    Browse the repository at this point in the history
  6. Update sharesniffer.py

    self.nm.all_hosts(): This method returns a list of all hosts that Nmap scanned and returned results for. If the target host (host) is not in this list, it means Nmap couldn't get any information for that host.
    Logging: A warning is logged when Nmap does not return results for a host, which could help in debugging why a particular host was skipped.
    Graceful Return: If the host is not in the scan results, the method returns the host and the empty open_ports dictionary, skipping further processing.
    FashyGainz authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    ae9ddc9 View commit details
    Browse the repository at this point in the history
  7. Update sharesniffer.py

    FashyGainz authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    02f9809 View commit details
    Browse the repository at this point in the history
  8. Update .todos

    FashyGainz authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    0cef1cf View commit details
    Browse the repository at this point in the history