-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_history
320 lines (320 loc) · 3.42 KB
/
.bash_history
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
ls
mail
ls
ls -a
cd ..
ls
ls a
cd ..
ls
cd home/
ls
cd bones
ls
cd ..
ls
cd mnt
ls
cd ..
cd dev
ls
ls -l
ls -h
man ls
ls --format=-1
ls --format='vertical'
ls
ls -l
ls -l > grep sb
grep
grep sb < ls -l
grep sb << ls -l
grep sb
grep
grep -i sb
grep -i "sb"
grep -i 'sb'\
grep -i 'sb'
grep --help
man grep
find
find sb
find /sb
find sb*
ls
ls sb
ls s*
cd sda1
ls
man mount
ls sb*
ls
ls sb
ls *sb
ls sb
ls sd
ls *sd
ls sd*
mount
mount /dev/sdb1 /usb
sudo mount /dev/sdb1 /usb
sudo su mount /dev/sdb1 /usb
sudo su
su
sudo su
su
sudo
sudo su
man sudo
man sudoers
ls
cd ~
sudo su
su
groups
su
group
groups
permissions
groups
adduser bones sudo
su
exit
groups
sudo
sudo su
mount /dev/sdb1 ~/usb/
sudo mount /dev/sdb1 ~/usb/
mkdir usb/
sudo mount /dev/sdb1 ~/usb/
cd usb
ls
cd extra
ls
mkdir ~/.ssh/
vi key.text
ls
vi key.txt
touc
touch ~/.ssh/authorized_keys
vi /home/bones/.ssh/authorized_keys
vi key.txt
cd ~/
ls
cd usb
vi
ls
cd extra/
ls
vi cmd.txt
cd ~/
sudo apt-get install openSSH-server htop screen
cd /etc/ssh/
ls
cat ssh_config
ls
vi ssh_config
vi sshd_config
sudo vi sshd_config
sudo service ssh restart
quit
exit
sudo umount /dev/sdb1
ls
cd usb
ls
cd ..
rmdir usb
ls
ls -a
sudo apt-get install apache2 php5 mysql-server mysql-client libapache2-mod-php5 php5-mysql
sudo service apache2 restart
sudo cp /var/www/index.html /var/www/index.php
cd /var/www/index.php
cd /var/www/
ls
vi index.
vi index.php
sudo vi index.php
mkdir ~/scripts/
mv index.php ~/scripts/
sudo mv index.php ~/scripts/
sudo adduser kamm12
sudo kamm12
sudo -u kamm12
sudo kamm12
sudo -U kamm12
sudo su
passwd test
passws
passwd
sudo -u kamm12
sudo -iu kamm12
sudo deluser kamm12
sudo adduser kamm12
sudo -iu kamm12
exit
sudo -iu kamm12
who
ls
ls -a
mkdir www/
ls
cd /var/www/
ls
sudo ln -s /var/www/b/ /home/bones/www/
ls
ls -a
cd b
mkdir b
sudo mkdir b
ln -s /var/www/b/ /home/bones/www/
ln -s /var/www/b /home/bones/www/
rmdir b
sudo rmdir b
ls
ln -s /var/www/b /home/bones/www/
cd /home/bones/www/
ls
rm b
ls
cd ..
ls
cd /var/www/
ls
ln -s /home/bones/www/
sudo ln -s /home/bones/ww/
sudo ln -s /home/bones/www/
ls
rmdir ww
sudo rmdir ww
sudo ln -d ww
sudo rm ww
ls
cd www
ls
cd ..
rm www
cd /var/www
ls
rm www
sudo rm www
sudo ln -s /home/bones/www/ ./b
ls
cd b
ls
cd ..
cd ~
ls
cd www
touch test
cd /var/www
ls
cd b
ls
cd ..
cd /home/kamm12/
ls
ls -a
mkdir www/
sudo mkdir www
ls
sudo rm www
sudo rmdir www
sudo -iu kamm12
ls
cd /var/www/
ls
sudo ln -s /home/kamm12/www/ ./k
sudo -iu kamm12
cd .ssh
ls
sudo apt-get install
sudo apt-get update
apt-get install git
sudo apt-get install git
git
ls
cd /var/www/
ls
sudo mkdir freaky/
sudo mkdir main/
ls
cd ~
ls
mkdir git
cd git/
git config --global user.name "Devyn Jones"
git config --global user.email "[email protected]"
[email protected]:devsky/dotfiles.git
git clone [email protected]:devsky/dotfiles.git
ssh forwarding
cd git
git clone [email protected]:devsky/dotfiles.git
gst
ls
cd profiles
cd dotfiles/
ls
ngrep
sudo ngrep
grep
httpdump
hd
ls
source ~/git/dotfiles/.profile
ls
cd git/dotfiles/
. .profiles
. .profile
ls
gst
ll
lsa
ls
gst
. .profile
gst
cd ..
..
ls =-a
ls -a
. .profile
ls
gst
gst
ls
gst
ls
. ~/git/dotfiles/.profile
gst
source ~/git/dotfiles/.profile
cd ~/git/dotfiles/
source .profile
gst
source git/dotfiles/.profile
cd git/dotfiles/
source .profile
gst
gst
source .profile
gst
dircolors
di
LS_COLORS
dircolors -b
cd /etc/
ls dir
ls dir*
ll
cd dircolors
dircolors
type ls
ls --color
ls --color=tty
touch .dircolors
cd /etc/
ls .
ls .*
s
gst