-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.py
More file actions
136 lines (106 loc) · 5.6 KB
/
commands.py
File metadata and controls
136 lines (106 loc) · 5.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
commands = {
"ls": """
The "ls" command works by accessing the file system and retrieving a list of files and directories in the current directory.
By default, it displays the names of files and directories in a simple format.
Adding flags like "-a" or "-l" modifies the output by showing hidden files or providing detailed information about each file and directory, respectively.
The "-h" flag is used to display file sizes in a more human-readable format (e.g., KB, MB, GB).
The "-R" flag enables recursive listing, which means it shows the contents of directories and their subdirectories.
""",
"dirb": """
DIRB(1) General Commands Manual DIRB(1)
NAME
dirb - Web Content Scanner
SYNOPSIS
dirb <url_base> <url_base> [<wordlist_file(s)>] [options]
DESCRIPTION
DIRB IS a Web Content Scanner. It looks for existing (and/or hidden)
Web Objects. It basically works by launching a dictionary basesd attack
against a web server and analizing the response.
OPTIONS
-a <agent_string>
Specify your custom USER_AGENT. (Default is: "Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1)")
-b Don't squash or merge sequences of /../ or /./ in the given
URL.
-c <cookie_string>
Set a cookie for the HTTP request.
-E <certificate>
Use the specified client certificate file.
-f Fine tunning of NOT_FOUND (404) detection.
-H <header_string>
Add a custom header to the HTTP request.
-i Use case-insensitive Search.
-l Print "Location" header when found.
-N <nf_code>
Ignore responses with this HTTP code.
-o <output_file>
Save output to disk.
-p <proxy[:port]>
Use this proxy. (Default port is 1080)
-P <proxy_username:proxy_password>
Proxy Authentication.
-r Don't Search Recursively.
-R Interactive Recursion. (Ask in which directories you want to
scan)
-S Silent Mode. Don't show tested words. (For dumb terminals)
-t Don't force an ending '/' on URLs.
-u <username:password>
Username and password to use.
-v Show Also Not Existent Pages.
-w Don't Stop on WARNING messages.
-x <extensions_file>
Amplify search with the extensions on this file.
-X <extensions>
Amplify search with this extensions.
-z <milisecs>
Amplify search with this extensions.
SEE ALSO
brain(x)
The Dark Raver 27/01/2009 DIRB(1)
""",
"nmap": """
"-p <port range>": Specifies the port(s) to scan. For example, "-p 1-1000" scans ports from 1 to 1000.
"-sV": Enables version detection, which attempts to determine the version of the services running on open ports.
"-O": Performs OS detection to identify the operating system of the target host.
"-A": Enables aggressive scanning, which combines multiple scan techniques like version detection, OS detection, and script scanning.
"<target>": Specifies the target IP address or hostname to scan. For example, "nmap 192.168.0.1" scans the host with the IP address 192.168.0.1.
""",
"cd": """
The "cd" command changes the current working directory in the command-line interface.
You can specify the directory you want to navigate to as an argument after the "cd" command.
For example, "cd Documents" would change the current directory to the "Documents" directory.
Additionally, using ".." as an argument moves up to the parent directory of the current directory.
""",
"pwd": """There are no specific flags for the "pwd" command. It simply displays the current working directory.""",
"netdiscover": """
"-r <IP range>": Specifies the IP range to scan. For example, "-r 192.168.0.0/24" scans all IP addresses in the range 192.168.0.1 to 192.168.0.254.
"-i <network interface>": Specifies the network interface to use for scanning.
"-p": Enables promiscuous mode, allowing the tool to capture packets on the network more effectively.
"-t <timeout>": Sets the timeout value for packet capturing.
"-F": Enables fast mode, which speeds up the scanning process.
""",
"rm": """
"-r": Removes directories and their contents recursively.
"-f": Forces the removal of files without prompting for confirmation.
"-i": Prompts for confirmation before removing each file.
"<file/directory>": Specifies the file or directory to remove. For example, "rm file.txt" removes the file named "file.txt".
""",
"cp": """
"-r": Copies directories and their contents recursively.
"-i": Prompts for confirmation before overwriting existing files.
"-v": Enables verbose mode, displaying detailed information about the copying process.
"<source>": Specifies the source file or directory to copy.
"<destination>": Specifies the destination directory where the file or directory should be copied.
""",
"mv": """
"-i": Prompts for confirmation before overwriting existing files.
"-v": Enables verbose mode, displaying detailed information about the moving process.
"<source>": Specifies the source file or directory to move.
"<destination>": Specifies the destination directory where the file or directory should be moved.
""",
"mkdir": """
"-p": Creates parent directories if they don't exist.
"-v": Enables verbose mode, displaying a message for each directory created.
"<directory>": Specifies the name of the directory to create.
""",
}