-
Notifications
You must be signed in to change notification settings - Fork 94
/
KitLoader.cna
73 lines (61 loc) · 2.01 KB
/
KitLoader.cna
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
# This script simply loads all of the kits in this repository. Just load this one, and it'll load the rest
# @Und3rf10w
include(script_resource("AnnoyKit/AnnoyKit.cna"));
include(script_resource("AntiForensicsKit/AntiForensicsKit.cna"));
include(script_resource("CredKit/CredKit.cna"));
include(script_resource("EnumKit/EnumKit.cna"));
include(script_resource("PersistKit/PersistKit.cna"));
include(script_resource("PrivescKit/PrivescKit.cna"));
include(script_resource("ThirdParty/thirdparty.cna"));
elog("Aggressor Kit loaded by " . mynick());
# Useful aliases, placed in kitloader because I always have this loaded
############################
####### SSH ALIASES ########
############################
ssh_alias ls {
if(!$2){
bshell($1, "ls -la");
} else {
bshell($1, "ls -la $2");
}
}
ssh_command_register("ls", "Lists files", "Use: ls [folder]\n\nLists files in a folder");
ssh_alias cat {
if ($2){
bshell($1, "cat $2");
} else {
berror($1, "Error: You must specify a file");
}
}
ssh_command_register("cat", "Displays the contents of a file", "Use: cat [file]\n\nDisplays the contents of [file]");
ssh_alias tail {
if ($2){
bshell($1, "tail $2");
} else {
berror($1, "Error: You must specify a file");
}
}
ssh_command_register("tail", "Print the last 10 lines of a file", "Use: tail [file]\n\nDisplays last 10 lines of [file]");
ssh_alias head {
if ($2){
bshell($1, "head $2");
} else {
berror($1, "Error: You must specify a file");
}
}
ssh_command_register("head", "Print the first 10 lines of a file", "Use: head [file]\n\nDisplays first 10 lines of [file]");
ssh_alias ps {
bshell($1, "ps aux");
}
ssh_command_register("ps", "Show process list", "Use: ps\n\nShows a list of processes");
############################
###### BEACON ALIASES ######
############################
alias type {
if ($2){
bshell($1, "type $2");
} else {
berror($1, "Error: You must specify a file");
}
}
beacon_command_register("type", "Displays the contents of a file", "Use: type [file]\n\nDisplays the contents of [file]");