全球主机交流论坛

标题: 有没有大佬能帮忙解一个脚本,是一个短网址形式的 [打印本页]

作者: free2035    时间: 2023-5-14 10:25
标题: 有没有大佬能帮忙解一个脚本,是一个短网址形式的
curl s.qwq.pink/fe-vqwqqvwqow58 | sh

我想学习下这个内网穿透的自动设置脚本,苦于不知道真实地址和脚本内容,感谢各位18cm的了
作者: xuhaoa    时间: 2023-5-14 10:32
wget s.qwq.pink/fe-vqwqqvwqow58
作者: emptysuns    时间: 2023-5-14 10:39
不说别的,这种靠请求头返回不同内容的脚本,10个里面9个加了料
作者: Laoliu    时间: 2023-5-14 10:51
  1. cla=""
  2. clb=""
  3. clc=""
  4. cld=""
  5. cle=""
  6. clf=""
  7. clg=""
  8. cllg=""
  9. clcc=""


  10. frpPort="42329"
  11. clear
  12. echo "${cle}QwQ.Pink FRP Installer | Port: ${clf}$frpPort"

  13. projectPath="/opt/moecdn/qwqfrp/frpc"

  14. echo "${clb}Download and Install FRP ...${clcc}"
  15. mkdir -p ${projectPath}

  16. rm -rf ${projectPath}/frpc
  17. curl --progress-bar --fail -o ${projectPath}/frpc http://file.qwq.pink/soft/frpc/frpc
  18. if [ $? -eq 0 ]; then
  19.         echo "${cla}Download Success.${clcc}"
  20. else
  21.         echo "${clc}Download failed.${clcc}"
  22.         exit 1
  23. fi

  24. chmod +x ${projectPath}/frpc

  25. sshPort=$(cat /etc/ssh/sshd_config|grep 'Port '|awk '{print $2}')

  26. cat << EOF > ${projectPath}/frpc.ini
  27. [common]
  28. server_addr = frp.qwq.pink
  29. server_port = 65000
  30. token = moecdn.qwq.pink

  31. [ssh_${frpPort}]
  32. type = tcp
  33. local_ip = 127.0.0.1
  34. local_port = ${sshPort}
  35. remote_port = ${frpPort}
  36. EOF

  37. echo "${clb}Register and Enable FRP Service ...${clcc}"

  38. cat << EOF > /lib/systemd/system/qwqfrp.service
  39. [Unit]
  40. Description=QwQ.Pink Frp Client Service
  41. After=network.target

  42. [Service]
  43. User=root
  44. PermissionsStartOnly=true
  45. ExecStart=${projectPath}/frpc -c ${projectPath}/frpc.ini
  46. ExecReload=${projectPath}/frpc reload -c ${projectPath}/frpc.ini
  47. KillMode=process
  48. Restart=always
  49. RestartSec=5s
  50. TimeoutStartSec=30s

  51. [Install]
  52. WantedBy=multi-user.target
  53. EOF

  54. systemctl daemon-reload
  55. systemctl enable qwqfrp
  56. systemctl restart qwqfrp
  57. systemctl start qwqfrp

  58. sed -i -e '/^[# ]*UseDNS yes*/cUseDNS no' /etc/ssh/sshd_config
  59. sed -i -e '/^[# ]*GSSAPIAuthentication yes*/cGSSAPIAuthentication no' /etc/ssh/sshd_config

  60. echo ""
  61. echo "${cla}Everything is ok.${clcc}"
  62. echo ""
  63. echo "${cla}/*====================================================*\"
  64. echo "${cla} |                                                    |"
  65. echo "${cla} |   ${clb}Your FRP Connect IP   ${cld}: ${clf}${frpPort}.frp.qwq.pink       ${cla}|"
  66. echo "${cla} |   ${clb}Your FRP Connect Port ${cld}: ${clf}${frpPort}                    ${cla}|"
  67. echo "${cla} |                                                    |"
  68. echo "${cla}\\*====================================================*/"
  69. echo "${clcc}"
复制代码

作者: free2035    时间: 2023-5-14 20:50
Laoliu 发表于 2023-5-14 10:51

谢谢大佬




欢迎光临 全球主机交流论坛 (https://loc.010206.xyz/) Powered by Discuz! X3.4