Some random number attack scripts
At the xman summer camp, the big man brought us cryptography courses. Among them, the random number part feels deeply and records several scripts.
1. Time as the Random Number of Seeds
https://www.jarvisoj.com/ [xman 2019] babyrpd
Server-side code
1 class Unbuffered(object):
2 def __init__(self, stream):
3 self.stream = str ...
Posted by houssam_ballout on Tue, 08 Oct 2019 10:06:01 -0700
Talking about Web Framework
I. Essence of Web Framework
All Web applications are essentially a socket server, and the user's browser is a socket client.
II. Web Framework Function
socket sends and receives messages - wsgiref (test), uwsgi (online)
Returns different strings according to different paths
Return dynamic pages (string substitution) - jin ...
Posted by cptnwinky on Mon, 07 Oct 2019 23:20:58 -0700
Implementation of FTP File Transfer in Terminal Based on Python
Implementing FTP File Transfer in Terminal
Code structure:
.├── client.py├── readme.txt└── server.py
Operating screenshots:
readme.txt
tftp file server
Project function:
* The client has a simple page command prompt
* Functions include:
1. View the File List (Ordinary File) in the Server File Library - > os. ...
Posted by wisedj on Mon, 07 Oct 2019 19:49:19 -0700
JAVA Network Programming and Classical Case Echo
Java's network concept is not distinguished by the host, but by the process. JVM helps to solve the network transmission without our consideration.
Although JVM helps users hide the original information of the network, some operations are left to users. There are two kinds of network connections: TCP ...
Posted by t2birkey on Mon, 07 Oct 2019 17:57:51 -0700
Implementation of Simple RPC Framework Based on Netty
Preface
Now there are many examples of using Netty to build RPC framework on the Internet. Why do I write an article here to discuss it? I know very well that I may not have written them so well. There are two reasons why we should write about it:
First, because after learning Netty, we need to practice constantly to better grasp the use of Ne ...
Posted by pup200 on Mon, 07 Oct 2019 17:30:38 -0700
axios Source Series - Internal Adapter
Default adapter
axios/lib/adapters/http.js
The core is the http(s).request method of nodejs to make requests
var utils = require('./../utils');
var settle = require('./../core/settle');
var buildFullPath = require('../core/buildFullPath');
var buildURL = require('./../helpers/buildURL');
var http = require('http');
var https = require('https'); ...
Posted by barteelamar on Sun, 06 Oct 2019 19:41:46 -0700
Linux/Windows C/C++ TCP Contamination Processing Method Source Code Customizable Header Information
This code is based on the Linux Epoll mechanism, using socket fd identifier to establish the linked list and the corresponding buffer.
tpack.h
#ifndef TPACK_H_
#define TPACK_H_
#include "define.h"
// Communication Packet Structure
#Define TPACK_HEAD_SIZE 512// Header information set to ...
Posted by !jazz on Sun, 06 Oct 2019 18:16:33 -0700
Detailed description of HAProxy configuration file
Configuration details:
HAPrpxy configuration file: / etc/haproxy/haproxy.cfg
It consists of two parts: global and proxies.
global: global configuration segment
Process and security configuration-related parameters
Performance tuning related parameters
Debug parameter
proxies: Proxy configuration ...
Posted by Cugel on Sun, 06 Oct 2019 11:25:06 -0700
The era of source code JAVA dry goods sharing! Use NIO simulation to realize Tomcat container!
What is NIO?New IO, which started in Java 1.4, provides a new non-blocking Java IO operation API.Non-Blocking IOInstead of the old version of Blocking IO, it is mostly used for network-related API s.
Why use NIO?After using NIO, the performance of WEB network program can be further improved.Simulate Tomcat 7, block IO to process Http requests: ...
Posted by spellbinder on Sat, 05 Oct 2019 20:20:43 -0700
Linux Service Control and Running Level
How to control the running state of the service? How to switch different levels of operation?
service control
ntsysv
Imitating graphical interactive interface, centralized configuration of various service startup status
level 35: Manage services at the specified runlevel, not just at the current runlevel.
[root@localhost ~]# ntsysv --level ...
Posted by miha on Sat, 05 Oct 2019 10:53:10 -0700