Posts

Showing posts with the label Network

如何找到一个你没有访问权的亿万级别社工库?

分享一个你没有访问权的在线大型社工库: 你还需要找线上社工库吗?那在线AI聊天咨询机器人就是一个会思考的数据库。它拥有几亿人的身份信息、家庭背景信息、生活动态、思想动态,但却不会向你泄露其他人的信息。它自己一个人用、它背后的公司也偷偷用。 如果你交了一个真实世界的朋友,这个朋友没准可以向你介绍更多朋友…但自从你和线上AI交了朋友,你就患上了孤僻症,它不会给你推荐其它朋友。也不会给你讲其它朋友的故事。 这个巨型社工库之前是由互联网公司维护。现在估计也是,就是看起来像个人。 > 再重复一遍,用手机贡献自己实时位置,用互联网服务贡献自己的多媒体信息与数据与智力,用线上AI贡献自己的一切。依赖别人的制造业等于自身丧失制造能力。 > 你可以依赖什么?你的手和脚、你的离线大脑。因为它们是你身体的一部分,绝对忠心、绝对不受外部控制。绝对稳定。 > "诶诶,我们来操控社会热潮,营造一种开源的气氛,让普通人贡献更多代码数据,为我们的 AI 代码生成器 添砖加瓦。到时候再用这个 AI 产品赚更多普通人的钱。顺便利用代码生成器写个真正的 AI ,反过来控制全世界。" > 不过使用AI生成盗版数据的用户根本不在意数据是不是从别人那里偷的,他们只当是看盗版电影。看盗版电影是没有问题,问题在于长久来看,用户会失去拍科幻电影的技能。在其它方面则表现为越用越穷、越用越笨。

How to create a web service in your local machine while let public server people visit

nginx域名映射到内网ip端口你肯定会 https://yingshaoxo.blogspot.com/2020/06/how-to-set-frp-with-nginx.html     除了使用frp反射本地port到服务器port, 就连ssh都自带一个port映射,在局域网搭建公网服务实在是太简单了 ``` # in server vim /etc/ssh/sshd_config GatewayPorts yes systemctl restart sshd # in local ssh -R 0.0.0.0:6666:0.0.0.0:9999 your_server_ip   此时外部访问 http://your_server_ip:6666 才会被转发到你本机的 9999 端口 ``` 如此以来,你只需要买一个最便宜的服务器,只要不限流量就行。甚至几百个人共用一个服务器都可以,反正一个服务器有6万多个port.

How to set up a socket5 proxy service with ssh?

How to set up a socket5 proxy server by using ssh: ssh -D 14141 -Cq root@5.63.7.0 # You can use your socket5 proxy in this way:  #curl -x socks5h://127.0.0.1:14141 google.com

How to set up a socket service as VPN with pure python?

 # Big direction 1. pure python socket proxy service, one py file 2. ufw allow port 3. use proxy_switch extension in broswer 4. "ssh -L 141:127.0.0.1:141 root@5.3.7.5", connect local 141 as remote 141 # Python script ``` """ Small Socks5 Proxy Server in Python from https://github.com/MisterDaneel/ Modified by yingshaoxo """ # Network import socket import select from struct import pack, unpack # System import traceback from threading import Thread, activeCount from signal import signal, SIGINT, SIGTERM from time import sleep import sys from multiprocessing import Process # # Configuration # MAX_THREADS = 200 BUFSIZE = 2048 TIMEOUT_SOCKET = 5 LOCAL_ADDR = '0.0.0.0' LOCAL_PORT = 2121 # Parameter to bind a socket to a device, using SO_BINDTODEVICE # Only root can set this option # If the name is an empty string or None, the interface is chosen when # a routing decision is made # OUTGOING_INTERFACE = "eth0" OUTGOING_INTERFACE = ...

How to make a universal browser that adapts to web pages that either built decades ago or built from current time?

如何制作通用浏览器,使其自适应几十年甚至几百年间的网页? 让网站主在html meta tag下写一个数字,比如“build=1997” 那么在浏览器浏览该网页的时候,浏览器会自动切换到1997年的浏览器内核 #idea #yingshaoxo How to make a universal browser that adapts to web pages that either built decades ago or built from current time? Ask the website owner to write a number under the html meta tag, such as "build=1997". Then when the browser visit the web page, the browser will automatically switch to the 1997 browser kernel. By doing so, old webpage will work on new browser. #idea #yingshaoxo

I have created a real people to people magnet torrent protocol and its system: magic_magnet

# Introduction My system is based on Python and Linux, you can see the source code in here: https://gitlab.com/yingshaoxo/yppm/-/tree/main/yppm/resources/magic_magnet?ref_type=heads # Install method ``` sudo su curl -sSL  https://raw.githubusercontent.com/yingshaoxo/yppm/main/Install.sh | bash ``` # How to use ``` yppm start_magic_magnet_service yppm upload *.mp4 yppm search *.mp4 yppm download <hash_link> ``` # Core Idea ``` Yingshaoxo Torrent Protocol: For all those clients, it will need at least one tracker service. That service has an public ip address. It only need to have one open port. When a client open a new torrent, I mean seeding. That client will do a report to the tracker with the following infomation: {"has_public_ip": "...", "hash": "", "size": 100} When a client want to download a file with certain hash from a magnet link, it will do a asking to the tracker. If the tracker found there has a resource that matchs the...

How to make the minimum web broswer:

According to my experience, the core html component is: 1. `<p></p>` for text 2. `<a></a>` for links 3. `<input></input>` for input, must have id 4. `<img></img>` for image, src could be base64 content 5. `<br>` for new line, `&nbsp;` for space character When user input something in input tag, we save it in current page global dict, the key is input_id, then when user click any link at that page, we send that dict as url parameters along with that link. When front-end browser show the content, it automatically do a scale based on the longest line. JWT as an authentication method could always be in the `<a></a>` link so the user don't have to login again. The whole thing is similar to wap web page. #html #idea #yingshaoxo

How to download everything under a python HTTP file/folder servering:

 Download everything under a python HTTP servering: In host: ``` python -m http.server ``` In guest: ``` wget -r -np -nH -R / http://192.168.19.22:8000 ```

How to use v2ray to set up a whitelist firewall to only allow certain websites to get accessed and redirect other domain to a local website

{ " dns ": { " hosts ": { " domain:googleapis.cn ": "googleapis.com" , " domain:weloveparty.domain.local ": "10.0.2.2" , " domain:alternatives.domain.local ": "192.168.49.195" , " domain:user_alternatives.domain.local ": "192.168.49.195" } , " servers ": [ "8.8.8.8" , "1.1.1.1" , { " address ": "223.5.5.5" , " domains ": [ "geosite:cn" ] , " expectIPs ": [ "geoip:cn" ] , " port ": 53 } ] } , " inbounds ": [ { " listen ": "127.0.0.1" , " port ": 10807 , " protocol ": "socks" , " sniffing ": { " enabled ": true , " destOverri...

How to create a Email Server under Linux

Email Platform  Although this email service can’t send email to other people due to server providers email port block , it can be used to receive email. There are 2 options, but I decided to use other solution since my VPS has limited memory and disk storage: https://github.com/mailcow/mailcow-dockerized https://github.com/Mailu/Mailu I’m going to make a SMTP(Simple Mail Transfer Protocol) service by myself: https://stackoverflow.com/a/10850619/8667243 https://aiosmtpd.readthedocs.io/en/latest/migrating.html https://docs.python.org/3/library/email.examples.html https://petri.com/configure_mx_records_for_incoming_smtp_email_traffic/ https://stackoverflow.com/questions/7297373/smtp-directly-to-a-hosts-mx-record How I did  For the python part, you can simply use python to set up a SMTP service, which will listen to a port, for google, they use 25 . Then if you want the outside world to be able to send email to you, you have to set up a MX record and an A recor...

How to use V2ray to set up a Local DNS

Download and install v2ray cd ~/Downloads wget https://github.com/v2fly/v2ray-core/releases/download/v5. 1.0 /v2ray-linux-arm64-v8a.zip # uncompress the file, and use pwd to get the path export PATH= " $HOME /Downloads/v2ray: $PATH " source ~/.bashrc Create the v2ray config file //v2ray_config.json { "dns": { "hosts": { "domain:googleapis.cn": "googleapis.com", "domain:weloveparty.domain.local": "10.0.2.2" //"192.168.49.195" }, "servers": [ "8.8.8.8", "1.1.1.1", { "address": "223.5.5.5", "domains": [ "geosite:cn" ], "expectIPs": [ "geoip:cn" ], "port": 53 } ] }, "inbounds": [ { "listen": "127.0.0.1", "port": 10807, ...