avatar
Articles
415
Tags
259
Categories
26

Theqiqi_blog
Search

Theqiqi_blog

14.用C语言在linux中使用Socks5协议开发代理服务器
Created2024-08-23|C with Socks|C•Socks5
[toc] 用C语言在linux中使用Socks5协议开发代理服务器1.写一个使用socks5协议的代理服务器程序支持域名与ipv4socks5s.c123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 ...
13.用C语言写http与https代理服务器
Created2024-08-23|C with Socks|C•Windows•Socks
[toc] 用C语言在windows中写http/https代理服务器1.用C语言写一个tcp服务器123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122/*一、服务器0.初始化socket1.创建socket2.绑定地址与端口3.监听4.接受来自客户端的连接5.接收消息->循环接收消息6.关闭socket*/#include <winsock2.h>#include <ws2tcpip.h>#include <stdio.h>#include <stdlib.h>#incl ...
note_pve使用笔记
Created2024-08-23|Linux|Linux•PVE•Disk
转换VMDK到qcow21 1qemu-img convert -f vmdk -O qcow2 /home/kali/iso/openwrt-23.05.4-x86-64-generic-ext4-combined.vmdk /home/kali/iso/openwrt-23.05.4-x86-64-generic-ext4-combined.qcow2 2 1qemu-img convert -f vmdk -O qcow2 /home/kali/iso/server2022_0.vmdk /home/kali/iso/server2022_0.qcow2 添加硬盘1 1qm importdisk 100 /home/kali/iso/openwrt-23.05.4-x86-64-generic-ext4-combined.qcow2 local-lvm 2 1qm importdisk 100 /home/kali/iso/server2022_0.vmdk local-lvm 扩展lvm分区12lvextend -L+100G pve/datalvresize -- ...
12.用C语言与tcp协议写一个代理服务器
Created2024-08-23|C with Socks|C•Socks
[toc] 一、使用C语言在windos中写一个tcp客户端程序,在linux中写一个tcp服务端程序1.用C语言在linux中写一个tcp服务端程序123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687// LinServer.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h> // for close()#include <arpa/inet.h> // for sockaddr_in, inet_ntop#include <sys/socket.h> // for socket(), bind(), listen(), accept( ...
11.使用C语言在Linux平台写服务端在windows中写客户端
Created2024-08-23|C with Socks|C•WinSock•TCP•IPV4•IPV6
[toc] 用C语言使用TCP协议发送文本消息1.用C语言使用TCP协议发送一句文本消息1.使用C语言在Linux中创建服务端程序接收一句文本消息12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970// LinServer.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h> // for close()#include <arpa/inet.h> // for sockaddr_in, inet_ntop#include <sys/socket.h> // for socket(), bind(), listen(), accept()int main() { int serverSock ...
10.用C语言在Linux中使用https协议浏览网页
Created2024-08-23|C with Socks|C•Linux•Socks
[toc] 使用C语言与openssl库在Linux中使用https协议浏览网页1. 安装openssl库 Debian中安装openssl库 12sudo apt updatesudo apt install openssl libssl-dev 编译命令 1gcc -o LinClient LinClient.c -lssl -lcrypto 2. 用C语言在Linux中使用https协议浏览https://www.bilibili.com/LinClient.c12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212 ...
9.用C语言在Linux中使用http协议浏览网页
Created2024-08-23|C with Socks|C•http•LinSock
[toc] 用C语言在Linux中使用http协议浏览网页1.用C语言在Linux中使用http协议浏览静态网页LinServer.c这个服务器程序将能够处理GET请求,并返回一个简单的HTML页面。 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101//LinServer.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <arpa/inet.h>#define PORT 8080#define BUFFER_SIZE 1024void handle_request(i ...
8.用C语言在Linux中使用http协议发送文本消息
Created2024-08-23|C with Socks|C•WinSock•http
[toc] 用C语言在Linux中使用http协议发送文本消息1. 用C语言在Linux中使用http协议创建一个服务端程序,输出hello,world LinServer.c 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677// LinServer.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <arpa/inet.h>#define PORT 8080#define BUFFER_SIZE 1024void handle_request(int client_socket) { char buffer[BUFFER_SIZE]; int ...
7.用C语言在Linux中使用UDP协议发送文本消息
Created2024-08-23|C with Socks|C•WinSock•IPV4•IPV6•UDP
[toc] 用C语言在Linux中使用UDP协议发送文本消息1.用C语言在Linux中使用UDP协议发送一句文本消息1.使用C语言在Linux中创建服务端程序接收一句文本消息12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758// LinServer.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h> // for close()#include <arpa/inet.h> // for sockaddr_in, inet_ntop#include <errno.h>#define BUF_SIZE 256int main() { int sock; struct sockaddr_in serverAddr, clientAdd ...
6.用C语言在Linux中使用TCP协议发送文本消息
Created2024-08-23|C with Socks|C•TCP•IPV4•IPV6•BSD Sockets
[toc] 用C语言在Linux中使用TCP协议发送文本消息1.用C语言在Linux中使用TCP协议发送一句文本消息1.使用C语言在Linux中创建服务端程序接收一句文本消息12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970// LinServer.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h> // for close()#include <arpa/inet.h> // for sockaddr_in, inet_ntop#include <sys/socket.h> // for socket(), bind(), listen(), accept()int main() { ...
1…262728…42
avatar
Theqiqi
Articles
415
Tags
259
Categories
26
Follow Me
Announcement
This is my Blog
Recent Post
03-反馈流2026-08-21
02-错误流2026-08-21
01-控制流2026-08-20
05-多系统协作的十条流2026-08-19
04-多层系统的十条流2026-08-18
Categories
  • C with Socks16
  • C_Sound10
  • C_Windows_Graphi9
  • Cpp5
  • Cpp_Socket4
  • C语言在Windows中实现抓包4
  • C语言的万种用法9
  • Debian1
Tags
十阶段 接口先行 Qt主题架构 WindowsDriver python 从输入到交互 select LinuxDriver 入口系统 UDP服务器与可靠性 微服务与组装边界 DLL javascript 多系统组成的网络通信软件 Piano 拆解资源 游戏类型演化 Kali 建模与逆向 BSD Sockets x86汇编程序 IPV4 Drvier 认知能力分解 技术流 qemu Ninja 业务流程到功能点 用头文件验证依赖 引擎组装 Sound 从状态到系统 epoll QEMU 依赖接口 shell 依赖关系 Graphi 拆解美术 只有组件的子系统如何被加载
Archives
  • August 2026128
  • January 20261
  • April 20251
  • March 202595
  • February 202523
  • September 20242
  • August 202471
  • June 20242
Info
Article :
415
UV :
PV :
Last Update :
©2020 - 2026 By Theqiqi
Framework Hexo|Theme Butterfly
Search
Loading the Database