August 4, 2023
實用小 code
Linux
GlobalLinux: /etc/profile : provides system-wide configuration for all Bourne compatible shells (sh, bash, ksh, etc.)Windows : Set Environment Var ...
Read more
March 28, 2023
AI
ChatGPT
API
Python
ChatGPT API用途: 快速開發有了這個 API ,你可以在你的網頁、APP、機器人中加個 Plugin,讓他有語言的能力,做到一些以前覺得不可能的事。
以往透過 Supervised learning 需要大量的資料及以及長時間的訓練才能製作出一個模型如今有了 ChatGPT ,我們 ...
Read more
March 21, 2023
AI
ChatGPT
API
Python
讓 LLM 記住之前聊天內容使用 API 時,LLM 可不會記得你們的對話內容,
1234567891011from langchain.chat_models import ChatOpenAIfrom langchain.chains import ConversationChainfr ...
Read more
March 10, 2023
AI
ChatGPT
Midjourney
Midjourney假設你想要一隻在森林吃蛋糕的貓:
1A cute cat is eating the cake on a plate in the forest.
ChatGPT 產生以下內容在實際描述,填入你希望產生的圖片後,貼給 ChatGPT :
12345678910111 ...
Read more
February 21, 2023
實用小 code
CSS
Cursor selection: 被滑鼠反白後的東西,背景顏色
1234::selection{ background: #870808; color: #ffb7b7;}
滑鼠的樣式
.auto { cursor: aut ...
Read more
February 21, 2023
實用小 code
CSS
.content-arrow{
display: flex;
justify-content: center;
font-size:100px;
margin-top:-25px;
}
.content-text{
display: flex;
...
Read more
August 6, 2022
實用小 code
蒐集資料
駭客
netcat
ftp
http
socat
Port-scanning
檔案傳輸 (Transferring files)
http server
12python -m SimpleHTTPServer 8080python3 -m http.server 8080
ftp server
12python -m pyftpdlib -p 2121 - ...
Read more
August 6, 2022
實用小 code
蒐集資料
駭客
Proxy
ssh
socks
Socks
SSH Socks
1ssh -D 1337 -q -C -N
[email protected]
Edit
1echo "socks5 127.0.0.1 1337" >> /etc/proxychains4.conf
proxycha ...
Read more
August 5, 2022
實用小 code
駭客
Linux
提權
PEASS-ng/linPEAS at master · carlospolop/PEASS-ng
CheckListChecklist - Linux Privilege Escalation
Anacron如果 cron.d 底下有指令會用 root 來執行 jobs ...
Read more
August 5, 2022
實用小 code
駭客
Windows
提權
Juicy Potato (abusing the golden privileges)Process creation mode depending on the impersonated user’s privileges you can choose from:
CreatePro ...
Read more