上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 41 下一页
摘要: 跟python一样的操作方法 针对TCP的数据流需要连接 accept 针对UDP的数据报就不需要连接 服务器端: ``` import java.io.*; import java.net.*; public class Server extends Thread{ public static v 阅读全文
posted @ 2023-08-13 16:30 N0zoM1z0 阅读(0) 评论(0) 推荐(0) 编辑
摘要: #### 启动靶机后 会看到这种界面 ![image](https://img2023.cnblogs.com/blog/3092507/202308/3092507-20230811202654800-443328343.png) #### 尝试用burpsuite抓包 用Firefox设置bur 阅读全文
posted @ 2023-08-11 21:06 N0zoM1z0 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 什么是序列化? ``` Java序列化是一种将对象转换为字节流的过程,以便在网络上传输或在文件中存储对象。 序列化可以将对象的状态保存到磁盘或通过网络传输, 然后可以通过反序列化重新创建对象, 使得对象的状态能够在不同的环境中进行传递和存储。 ``` do shi te 要用序列化? - 网络传输: 阅读全文
posted @ 2023-08-11 18:10 N0zoM1z0 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 和C++的 template 类似 ``` public class Mine { static void pln(T x) { System.out.println(x); } public static void printArray(T[] Array) { for(T element : A 阅读全文
posted @ 2023-08-11 17:29 N0zoM1z0 阅读(1) 评论(0) 推荐(0) 编辑
摘要: ``` enum Color{ RED,GREEN,BLUE; private Color() { Mine.pln("Constructor called for : " + this.toString()); } public void ColorInfo() { Mine.pln("Unive 阅读全文
posted @ 2023-08-11 15:54 N0zoM1z0 阅读(0) 评论(0) 推荐(0) 编辑
摘要: scanner类 Next ``` import java.util.Scanner; public class Mine { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System 阅读全文
posted @ 2023-08-10 17:57 N0zoM1z0 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Java switch 语句 ``` public class Mine { static void pln(T x){ System.out.println(x); } static void Out(char grade) { switch(grade) { case 'A': pln("Exe 阅读全文
posted @ 2023-08-09 11:54 N0zoM1z0 阅读(0) 评论(0) 推荐(0) 编辑
摘要: TCP 通话实现: 服务器端 ``` import socket import threading import time ''' 服务器端 ''' flag = 1 def TcpLink(sock, addr): print('接收到一个来自%s:%s的连接' % addr) sock.send 阅读全文
posted @ 2023-08-02 22:48 N0zoM1z0 阅读(9) 评论(0) 推荐(0) 编辑
摘要: ``` interface Interface{ } class Father{ public Father() { } protected void pln(T sT) { System.out.println(sT); } public void F1() { pln(this); } prot 阅读全文
posted @ 2023-08-02 21:14 N0zoM1z0 阅读(2) 评论(0) 推荐(0) 编辑
摘要: pln函数 用 类似C++的 teplate形式 接受任意类型参数 ``` class Euphonium{ String nameString; public Euphonium() {} public Euphonium(String nameString) { this.nameString 阅读全文
posted @ 2023-08-01 11:42 N0zoM1z0 阅读(1) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 41 下一页