avatar
Articles
51
Tags
3
Categories
0

Home
Archives
Tags
About
BlogSpace
Home
Archives
Tags
About
git命令的代理配置
Created2024-01-29
git命令的代理配置git命令访问github资源用了两种不同的协议http和ssh,两种协议对应的配置方式不相同 http代理配置对于只读仓库,只下载来说,用http方式配置即可,一般代理都能实现 1. 从系统方向解决设置系统的全局代理,然后执行git命令即可 123export all_proxy="http://ip:port"# or [use socks5]export all_proxy="socks5://ip:port" 2. 从git仓库配置方向解决123git config --global http.proxy "http://ip:port"# or [use socks5]git config --global http.proxy "socks5://ip:port" 上述两种方法配置好后,git pull要注意协议必须时http,上述配置才有用 1git pull https://github.com/xxx/xxx.git ssh代理配置1. 从系统方向解决设置 ...
nginx在stream模式下如何将客户端真实IP传递给服务端
Created2024-01-28
nginx使用stream分流nginx用443端口同时支持ssh和http服务器访问,只能使用一个端口,这时候就要用到stream分流 实际原理是nginx在tcp建立连接后会发送一条tcp信息包含客户端ip和port,所以后端服务要适配接收该tcp信息, 主动接收该报文信息,当后端服务不需要该信息时,也要主动接收,否则nginx发送的报文给后端服务器,导致后端服务器接收到未知报文处理不当时会报错 nginx stream配置1234567891011121314151617181920212223242526# SNI 分流stream { map $ssl_preread_server_name $upstream { jumhorn.com 127.0.0.1:80; # for http default 127.0.0.1:22; # for ssh } server { listen 443; proxy_pass $upstream; proxy_protoco ...
跟踪系统调用进行调试
Created2023-10-05
strace跟踪调试,查看进程系统调用 查看系统打开文件例子12345# pidof find the pid of running process# 跟踪文件sudo strace -e trace=file -p `pidof fcgiwrap`# 跟踪系统调用sudo strace -e stat -p `pidof sshd` 实战应用在部署nginx和phpmyadmin的时候出现报错FastCGI sent in stderr: Primary script unknown 这个报错没有给出实质性的信息,但是又没有办法调试php-fpm 这时查看系统调用就是神奇的方法 处理方法 配置php-fpm 让该进程只有一个worker,便于跟踪调查 123456# edit /etc/php-fpm.conf or /etc/php-fpm.d/www.conf# add this line to specify only one workerpm.max_children = 1pm.start_servers = 1pm.min_spare_servers = 1p ...
用chrome调试微信内置网页浏览器
Created2023-09-15
用chrome调试微信网页今天想修改微信内置网页的一些参数,实现JavaScript注入,跳过一些限时的功能,就查找了一下如何调试微信内置页面 工具 chrome 安卓手机(含微信) 安装 微信端 安卓手机开启开发者模式,允许 USB debug 实际操作成功后,usb连接电脑,会有usb图标 微信内置页面开启允许调试 1http://debugxweb.qq.com/?inspector=true 打开页面显示下载微信即为成功 chrome端 chrome浏览器打开1chrome://inspect/#devices 调试电脑上出现微信正在访问的页面,点击inspect即可。 此时可以在电脑上注入JavaScript代码,修改页面功能。 FAQ 无法显示网页,出现黑屏 该方法要求一定要能访问google页面,需要科学上网
Hello World
Created2023-09-15
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
nginx_redirect
Created2023-05-23
nginx跳转带来的问题记录一次实战配置中nginx自动跳转带来的问题,以及该问题的发现与分析 nginx配置如下nginx作为流量分发,对于443端口同时支持ssh和https服务 web服务是配置的/vscode访问后端服务 stream配置 12345678910111213# SNI 分流stream { map $ssl_preread_server_name $name { ssh.jumhorn.com 127.0.0.1:22; default 127.0.0.1:8880; } server { listen 443; proxy_pass $name; ssl_preread on; }} http模块内部server配置 123456789101112131415161718server { listen 127.0.0.1:8880 ssl; server_name jumhorn.com www.jumhorn ...
gitlab创建远程开发环境,将gitlab作为前端
Created2023-04-30
GitLab Remote Developmentgithub,gitlab都支持webide,但是使用webide时无法使用shell命令, 恰好由于gitlab支持远程开发,所以将vps算力提供给gitlab,是的webide可以编译,调试 工具 https://docs.gitlab.com/ee/user/project/remote_development/ gitlab直接使用docker部署 配置 申请域名证书 开启docker镜像 获取token1docker exec my-environment cat TOKEN 使用 打开任意webide 连接 domain.com:3443 FAQ目前没有给出源码,只给出了docker部署 exited (134) 在centos上跑ubuntu docker,node报错ulimit,要更新版本,我使用的是aliyun的centos就没再折腾了
about
Created2023-04-21
一条命令实现DDOS
Created2022-02-15
一条命令实现DDOS攻击这个工具可太强了,一会就把路由器发崩溃了,局域网的电脑也连不上了 工具 hping3 123456# debianapt install hping3# macbrew install hping# centosbrew install hping3 SYN DDOS攻击工具使用方法 12345# -S specifies sending SYN packets# -p 80 targets port 80# -i u20 waits 20 microseconds between packets = 50,000# packets per secondsudo hping3 -i u20 -S -p 80 -c 50000 ip(x.x.x.x) 隐藏自身IP地址模拟出多个IP攻击主机的情况 其实SYN攻击,只需要发送SYN包,返回的包根本不处理 所以SYN包的source_address可以随机填写 123# --rand-source random source address mode# --flood sent packets ...
仅为乐趣而写博客
Created2022-02-15
blogjust for fun ideas 安装和使用anbox 在centos上搭建vpn 多台公网服务器组建局域网 使用vpn 建立查找开放端口的对应IP服务 暴力破解wifi密码 mysql命令行登录的密码加密了吗 如果截获报文是可以看到客户端和服务器的机器类型的 搭建邮箱服务器 创建邮件列表相当于一个公用邮箱的转发和群发
123…6
avatar
JumHorn
Articles
51
Tags
3
Categories
0
Follow Me
Announcement
BlogSpace
Recent Post
openshift创建不过期的token2024-05-09
云浏览器2024-03-27
C++语法糖2024-03-05
C++反汇编2024-02-29
正则表达式2024-02-29
Tags
信息 架构 技术
Archives
  • May 20241
  • March 20242
  • February 20246
  • January 20242
  • October 20231
  • September 20232
  • May 20231
  • April 20232
Info
Article :
51
UV :
PV :
Last Push :
©2020 - 2025 By JumHorn
Framework Hexo|Theme Butterfly