-
Notifications
You must be signed in to change notification settings - Fork 606
/
weevely.1
288 lines (284 loc) · 4.19 KB
/
weevely.1
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
.TH WEEVELY "1" "October 2018" "weevely 4.0.2" "User Commands"
.SH NAME
Weevely \- Weaponized web shell
.SH DESCRIPTION
.PP
A web shell designed for post\-exploitation purposes that can
be extended over the network at runtime.
.PP
Upload weevely PHP agent to a target web server to get remote shell
access to it.
Once connected you can make use of the more than 30 modules to assist
administrative tasks, maintain access, provide situational awareness,
elevate privileges, and spread into the target network.
.SH SYNOPSIS
.nf
\f[C]
Run terminal to the target
\fBweevely\ <URL>\ <password>\ [cmd]\fR
Generate backdoor agent
\fBweevely\ generate\ <password>\ <path>\fR
Load session file
\fBweevely\ session\ <path>\fR
\f[]
.SS Features
.IP \[bu] 2
Shell access to the target
.IP \[bu] 2
SQL console pivoting on the target
.IP \[bu] 2
HTTP/HTTPS proxy to browse through the target
.IP \[bu] 2
Upload and download files
.IP \[bu] 2
Spawn reverse and direct TCP shells
.IP \[bu] 2
Audit remote target security
.IP \[bu] 2
Run Meterpreter payloads
.IP \[bu] 2
Port scan pivoting on target
.IP \[bu] 2
Mount the remote filesystem
.IP \[bu] 2
Bruteforce SQL accounts pivoting on the target
.SS Agent
.PP
The agent is a small, polymorphic PHP script hardly detected by AV and
the communication protocol is obfuscated within HTTP requests.
.SS Modules
.PP
.TS
tab(@);
lw(27.4n) lw(42.6n).
T{
Module
T}@T{
Description
T}
_
T{
:audit_filesystem
T}@T{
Audit the file system for weak permissions.
T}
T{
:audit_suidsgid
T}@T{
Find files with SUID or SGID flags.
T}
T{
:audit_disablefunctionbypass
T}@T{
Bypass disable_function restrictions with mod_cgi and .htaccess.
T}
T{
:audit_etcpasswd
T}@T{
Read /etc/passwd with different techniques.
T}
T{
:audit_phpconf
T}@T{
Audit PHP configuration.
T}
T{
:shell_sh
T}@T{
Execute shell commands.
T}
T{
:shell_su
T}@T{
Execute commands with su.
T}
T{
:shell_php
T}@T{
Execute PHP commands.
T}
T{
:system_extensions
T}@T{
Collect PHP and webserver extension list.
T}
T{
:system_info
T}@T{
Collect system information.
T}
T{
:system_procs
T}@T{
List running processes.
T}
T{
:backdoor_reversetcp
T}@T{
Execute a reverse TCP shell.
T}
T{
:backdoor_tcp
T}@T{
Spawn a shell on a TCP port.
T}
T{
:backdoor_meterpreter
T}@T{
Start a meterpreter session.
T}
T{
:bruteforce_sql
T}@T{
Bruteforce SQL database.
T}
T{
:file_gzip
T}@T{
Compress or expand gzip files.
T}
T{
:file_clearlog
T}@T{
Remove string from a file.
T}
T{
:file_check
T}@T{
Get attributes and permissions of a file.
T}
T{
:file_upload
T}@T{
Upload file to remote filesystem.
T}
T{
:file_webdownload
T}@T{
Download an URL.
T}
T{
:file_tar
T}@T{
Compress or expand tar archives.
T}
T{
:file_download
T}@T{
Download file from remote filesystem.
T}
T{
:file_bzip2
T}@T{
Compress or expand bzip2 files.
T}
T{
:file_edit
T}@T{
Edit remote file on a local editor.
T}
T{
:file_grep
T}@T{
Print lines matching a pattern in multiple files.
T}
T{
:file_ls
T}@T{
List directory content.
T}
T{
:file_cp
T}@T{
Copy single file.
T}
T{
:file_rm
T}@T{
Remove remote file.
T}
T{
:file_upload2web
T}@T{
Upload file automatically to a web folder and get corresponding URL.
T}
T{
:file_zip
T}@T{
Compress or expand zip files.
T}
T{
:file_touch
T}@T{
Change file timestamp.
T}
T{
:file_find
T}@T{
Find files with given names and attributes.
T}
T{
:file_mount
T}@T{
Mount remote filesystem using HTTPfs.
T}
T{
:file_enum
T}@T{
Check existence and permissions of a list of paths.
T}
T{
:file_read
T}@T{
Read remote file from the remote filesystem.
T}
T{
:file_cd
T}@T{
Change current working directory.
T}
T{
:sql_console
T}@T{
Execute SQL query or run console.
T}
T{
:sql_dump
T}@T{
Multi dbms mysqldump replacement.
T}
T{
:net_mail
T}@T{
Send mail.
T}
T{
:net_phpproxy
T}@T{
Install PHP proxy on the target.
T}
T{
:net_curl
T}@T{
Perform a curl\-like HTTP request.
T}
T{
:net_proxy
T}@T{
Run local proxy to pivot HTTP/HTTPS browsing through the target.
T}
T{
:net_scan
T}@T{
TCP Port scan.
T}
T{
:net_ifconfig
T}@T{
Get network interfaces addresses.
T}
.TE
.SH SEE ALSO
https://github.com/epinna/weevely3/wiki
.SH AUTHOR
weevely is developed by The Weevely Developers, this manpage was made by Emilio <epinna> and Samuel Henrique <[email protected]> based on weevely's README.md and can be used by other projects as well.