---
# System prepended metadata

title: 網安note

---

# 網安note
## Cookie
Firefox: 檢查(F12) -> Storage -> cookie
Chrome: 檢查(F12) -> Application -> Storage -> cookie

## 封包解析網站:
https://apackets.com/

## 封包分析(答案在圖片裡)
1. wireshark搜png
2. 找可能為內網的ip(192.168.X.X)
3. portable network graphics
4. show packet bytes


## C++ online:
https://www.onlinegdb.com/online_c++_compiler

## Python Online:
https://www.jdoodle.com/


## fcrackzip
`sudo apt update`
`sudo apt install fcrackzip`
`fcrackzip -u -D -p 可能的密碼.txt 被加密的.zip`

## 暴力破解
產生W1XXXXXXXX
共10位的身分證字號
```c++ 
#include <iostream>
#include <iomanip>
#include <fstream>
using namespace std;

int main(){
ofstream file("ctf.txt");
for (int i=0; i<100000000;i++){
	if (file.is_open()){	
		file << "W1";
		file << setfill('0') << setw(8) << i;
		file << "\n";
	}
}
file.close();
return 0;
}
```

## 執行c++
`g++ ctf.cpp -o output`
`./output`

## 加解密online
https://cryptii.com/pipes/caesar-cipher

## Base64 Decode
https://www.base64decode.org/

## sqlmap
https://ithelp.ithome.com.tw/articles/10249489

## SQL injection
https://ithelp.ithome.com.tw/articles/10205471

## nmap
https://ithelp.ithome.com.tw/articles/10272526

## PNG圖片資訊隱藏
https://ithelp.ithome.com.tw/articles/10208866

## 參考
https://hackmd.io/@ctc2324/r1q2rWMPn
https://ithelp.ithome.com.tw/articles/10224078