全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1276|回复: 4
打印 上一主题 下一主题

有没有大佬能帮忙解一个脚本,是一个短网址形式的

[复制链接]
跳转到指定楼层
1#
发表于 2023-5-14 10:25:04 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
curl s.qwq.pink/fe-vqwqqvwqow58 | sh

我想学习下这个内网穿透的自动设置脚本,苦于不知道真实地址和脚本内容,感谢各位18cm的了
5#
 楼主| 发表于 2023-5-14 20:50:17 | 只看该作者
4#
发表于 2023-5-14 10:51:07 | 只看该作者
  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}"
复制代码
3#
发表于 2023-5-14 10:39:11 来自手机 | 只看该作者
不说别的,这种靠请求头返回不同内容的脚本,10个里面9个加了料
2#
发表于 2023-5-14 10:32:22 来自手机 | 只看该作者
wget s.qwq.pink/fe-vqwqqvwqow58
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-14 20:33 , Processed in 0.066781 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表