-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.bash_history
161 lines (161 loc) · 2.19 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
cd .ssh/
cd
mkdir .ssh
cd .ssh/
vim authorized_keys
mc
sudo apt-get install mc
mc
ls
cd ..
ls
ls -la
cd web/
ls -la
ls
rm test.html
ls
rm info.php
ls
rm info.php
ls
clear
ls -la
mc
sudo chown -Rv web:web .
clear
ls -la
mc
mc
grep -rl 'sidebar' .'
grep -rl 'sidebar' .
cp header.php header-no-sidebar.php
vim header-no-sidebar.php
cp page.php page-promo.php
vim page-promo.php
vim page-promo.php
cp page-promo.php page-create.php
vim page-promo.php
ls -la
:q
cd ..
ls
cd ..
ls
cd ..
ls
id web
id www-data
sudo usermod -a -G www-data web
id web
ls
cd wp-content/
ls
cd themes/
ls
cd twentyfifteen/
ls
chown -Rv web:www-data .
sudo chown -Rv web:www-data .
chown -Rv web:web .
sudo usermod -a -G web www-data
id www-data
cd ..
cd ..
ls
sudo chown -Rv web:www-data .
cd themes/
ls
cd twentyfifteen/
ls
cd page-promo.php
vim php.ini
sudo vim php.ini
sudo service apache2 restart
wget truphoto.ru/Parallax-One.zip
wget truphoto.ru/amadeus.1.03.zip
unzip amadeus.1.03.zip
unzip Parallax-One.zip
ls
cd plugins/
ls
wget https://downloads.wordpress.org/plugin/contact-form-7.4.4.2.zip
unzip contact-form-7.4.4.2.zip
ls
cd
ls
cd wp-config
ls
cd wp-content/
ls
cd plugins/
ls
wget https://downloads.wordpress.org/plugin/stacksight.1.9.4.zip
unzip stacksight.1.9.4.zip
wget https://downloads.wordpress.org/plugin/aryo-activity-log.2.3.2.zip
unzip aryo-activity-log.2.3.2.zip
ls
wget https://downloads.wordpress.org/plugin/all-in-one-wp-security-and-firewall.zip
wget https://downloads.wordpress.org/plugin/wordpress-seo.3.4.zip
ls
unzip wordpress-seo.3.4.zip
ls
unzip stacksight
unzip stacksight.1.9.4.zip
ls
em elementor.0.4.1.zip wordpress-seo.3.4.zip
rm elementor.0.4.1.zip wordpress-seo.3.4.zip
ls
ls
ls
cd ..
ls
cd ..
ls
vim wp-config.php
vim wp-config.php
vim wp-config.php
ls
cd
ls
pwd
cd /home/
ls
cd stacksight/
ls
sudo bash
php wp-cli.phar --info
chmod a+x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp info
ls
ls
ll
ls
ls- la
cd hrm/
ls
cd ..
cd ..
cd web/
ls
ls -la
ls
cd ..
ls
ls -la
exit
ls
cd
cd .ssh/
ls
cat authorized_keys
ls
ls
wp
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
sudo bash
exit