8000 fix: remove fping -r flag by default, show alive hosts better by ocervell · Pull Request #665 · freelabz/secator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: remove fping -r flag by default, show alive hosts better #665

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
merged 1 commit into from
May 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions secator/output_types/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ def __repr__(self) -> str:
s = f'💻 [bold white]{self.ip}[/]'
if self.host:
s += rf' \[[bold magenta]{self.host}[/]]'
if self.alive:
s += r' [bold green]🟢[/]'
return rich_to_ansi(s)
8 changes: 6 additions & 2 deletions secator/tasks/fping.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,24 @@
@task()
class fping(ReconIp):
"""Send ICMP echo probes to network hosts, similar to ping, but much better."""
cmd = 'fping -a -A -d'
cmd = 'fping -a -A'
input_types = [IP, HOST]
output_types = [Ip]
tags = ['ip', 'recon']
file_flag = '-f'
input_flag = None
opts = {
'reverse_dns': {'is_flag': True, 'default': False, 'short': 'r', 'help': 'Reverse DNS lookup (slower)'}
}
opt_prefix = '--'
opt_key_map = {
DELAY: 'period',
PROXY: OPT_NOT_SUPPORTED,
RATE_LIMIT: OPT_NOT_SUPPORTED,
RETRIES: 'retry',
TIMEOUT: 'timeout',
THREADS: OPT_NOT_SUPPORTED
THREADS: OPT_NOT_SUPPORTED,
'reverse_dns': 'r'
}
opt_value_map = {
DELAY: lambda x: x * 1000, # convert s to ms
Expand Down
Loading
0