728x90 ๐จ๐ผ๐ป๊ฐ๋ฐ158 C# - ๋ค๋ฅธ ํ๋ก๊ทธ๋จ ์คํ ์ํค๊ธฐ(Porcess.Start) with ์์ ๊ฒฝ๋ก ์ง์ ์์ ํ ์ค๋ก ํ๋ก๊ทธ๋จ ์คํ์ํค๊ธฐ System.Diagnostics.Process.Start(".\\Agents\\MCROAgent" + idx.ToString() + "\\clicker.exe"); ํ๋ก๊ทธ๋จ ์์ ๊ฒฝ๋ก ๋ฑ ๋ค์ํ ์ต์ ์ค์ Process process = new Process(); process.StartInfo.WorkingDirectory = "Agents\\MCROAgent" + idx.ToString(); // ์์ ๊ฒฝ๋ก process.StartInfo.FileName = "clicker.exe"; // ํ์ผ ์ด๋ฆ process.Start(); * ํ๋ก๊ทธ๋จ์ ํด๋ ๋ด์์ ์คํ์์ผ์ผ๋ง ํ ๊ฒฝ์ฐ ์ถ์ฒ: https://heon-dev.tistory.com/7 Process.Start(.. 2022. 8. 28. C# - ํ๋ก๊ทธ๋จ ์ค๋ณต ์คํ ๋ฐฉ์งํ๊ธฐ ๋ฐฉ๋ฒ 1. ํ๋ก์ธ์ค ์ด๋ฆ ์ค๋ณต ๊ฐ์ง //์ด๋ฏธ ํ๋ก๊ทธ๋จ์ด ์คํ ์ค ์ผ๋... System.Diagnostics.Process[] processes = null; string strCurrentProcess = System.Diagnostics.Process.GetCurrentProcess().ProcessName.ToUpper(); processes = System.Diagnostics.Process.GetProcessesByName(strCurrentProcess); if (processes.Length > 1) { MessageBox.Show(string.Format("'{0}' ํ๋ก๊ทธ๋จ์ด ์ด๋ฏธ ์คํ ์ค์ ๋๋ค.", System.Diagnostics.Process.GetCurrentProcess().Pr.. 2022. 8. 26. C# - ๋ค๋ฅธ ํ๋ก์ธ์ค๋ผ๋ฆฌ ๋ฉ์์ง(string) ์ ๋ฌํ๊ธฐ(SendMessage) ์์ const int WM_COPYDATA = 0x4A; public struct COPYDATASTRUCT { public IntPtr dwData; public int cbData; [MarshalAs(UnmanagedType.LPStr)] public string lpData; } protected override void WndProc(ref Message m) { try { switch (m.Msg) { case WM_COPYDATA: COPYDATASTRUCT cds = (COPYDATASTRUCT)m.GetLParam(typeof(COPYDATASTRUCT)); MessageBox.Show(cds.lpData); break; default: base.WndProc(ref m); break;.. 2022. 8. 24. C# - ๋ค๋ฅธ ์์ฉํ๋ก๊ทธ๋จ์ ์ ์ดํด ๋ณด์. feat.SPY++ ๊ฐํน ๊ฐ๋ฐ์ ํ๋ค๋ณด๋ฉด ์ธ๋ถ ์์ฉํ๋ก๊ทธ๋จ์ ์ฐ๊ณํ๊ฑฐ๋ ์ ์ดํด์ผํ ์ผ์ด ์๋ค. ์ผ๋ฐ์ ์ผ๋ก ๋ณธ์ธ์ด ๋ง๋ (์์ค๊ฐ ์๋) ํ๋ก๊ทธ๋จ์ด๋ผ๋ฉด ์์ฝ๊ฒ ์ง๋ง ์๋๊ฒฝ์ฐ๊ฐ ๋๋ถ๋ถ์ด๋ค. ๊ทธ๋ด๋๋ Window Message๋ฅผ ์ด์ฉํ์ฌ ๋ค๋ฅธ ์์ฉํ๋ก๊ทธ๋จ์ ์ ์ดํ ์ ์๋ค. ๋ชจ๋ ์๋์ฐ ์์ฉํ๋ก๊ทธ๋จ์ ์๋์ฐ์ฆ ์์์ ๋์ํ๊ธฐ๋๋ฌธ์ ๊ณตํต๋ ๋ฉ์์ง๋ฅผ ์ด์ฉํ์ฌ ์ ์ดํ๋ ๋ฐฉ๋ฒ์ด๋ค. ์์ ๋ค์์ ๊ณ์ฐ๊ธฐ ์์ฉํ๋ก๊ทธ๋จ์ ํธ๋ค์ ์ฐพ์์ ํด๋น ํธ๋ค์ ๋ฉ์์ง๋ฅผ ๋ณด๋ด๋ ์์ ์ด๋ค. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windo.. 2022. 8. 24. C# - ์ค๋ ๋์์ ์์ ฏ ์กฐ์ํ๊ธฐ private void AggiornaContatore() { if(this.lblCounter.InvokeRequired) { this.lblCounter.BeginInvoke((MethodInvoker) delegate() {this.lblCounter.Text = this.index.ToString(); ;}); } else { this.lblCounter.Text = this.index.ToString(); ; } } Invoker ์ฌ์ฉ ์ถ์ฒ: https://stackoverflow.com/questions/14890295/update-label-from-another-thread Update label from another thread I use a thread writing in anothe.. 2022. 8. 23. ์ฝํ๋ฆฐ - ๊ฐ์ข ๋ชจ์ ์๋๋ก์ด๋ ๊ฐ๋ฐ์ ํ์ํ ์ต์์ ์ฝํ๋ฆฐ ๊ฐ์ข ์๋ฆฌ์ฆ https://greedy0110.tistory.com/m/34 [kotlin] ์๋๋ก์ด๋ ๊ฐ๋ฐ์ ํ์ํ ์ต์์ ์ฝํ๋ฆฐ ๊ฐ์ข (part1) ๋์ ์๋ ํ์ธ์. ์๋๋ก์ด๋ ๊ณต์ ์ธ์ด๋ก ์ฝํ๋ฆฐ์ด ์ฑํ๋์ง๋ ๊ฝค ์ค๋ ์๊ฐ์ด ํ๋ ๋๋ฐ์. ์ฝํ๋ฆฐ์ ๊ฐ์ง๊ณ ๊ฐ๋ฐ์ ํ๋ฉฐ ์ฝํ๋ฆฐ์ด c++, java, c#๊ณผ ์ด๋ค ๋ถ๋ถ์์ ๋ค๋ฅด๊ณ , ์ด๋ค ๋ถ๋ถ์์ ๋น์ทํ greedy0110.tistory.com ์ฝํ๋ฆฐ ์จ๋ผ์ธ ์คํ ํ๊ฒฝ https://play.kotlinlang.org/ Kotlin Playground: Edit, Run, Share Kotlin Code Online play.kotlinlang.org 2022. 8. 23. ํ์ด์ฌ - ๋ธ๋ฃจํฌ์ค ๊ด๋ จ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ธ๋ฃจํฌ์ค ์ฐ๊ฒฐ ๋ชจ๋ https://github.com/pybluez/pybluez GitHub - pybluez/pybluez: Bluetooth Python extension module Bluetooth Python extension module. Contribute to pybluez/pybluez development by creating an account on GitHub. github.com ๋ผ์ฆ๋ฒ ๋ฆฌํ์ด ๋ธ๋ฃจํฌ์ค ํค๋ณด๋ ์๋ฎฌ๋ ์ดํฐ https://github.com/quangthanh010290/keyboard_mouse_emulate_on_raspberry GitHub - quangthanh010290/keyboard_mouse_emulate_on_raspberry: Bluetooth Key.. 2022. 8. 23. ๊ฐ๋ฐ - ์จ๋ผ์ธ ์ปดํ์ผ๋ฌ https://replit.com/languages/csharp C# Online Compiler & Interpreter Write and run C# code using our C# online compiler & interpreter. You can build, share, and host applications right from your browser! replit.com ํ์ด์ฌ์ด๋ ์๋ฐ์คํฌ๋ฆฝํธ ๊ฐ์ ์ธํฐํ๋ฆฌํฐ ์ธ์ด๋ ์คํ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ๋ก ํ์ธ ๊ฐ๋ฅํ ๊ฒ์ฒ๋ผ ๊ฐ๋ณ๊ฒ ๋ฌธ๋ฒ์ ํ์ธํ๊ฑฐ๋ ์คํ ๊ฒฐ๊ณผ๋ฅผ ๋ฏธ๋ฆฌ ์๊ณ ์ถ์ ๊ฒฝ์ฐ์ ์จ๋ผ์ธ ์ปดํ์ผ๋ฌ๋ฅผ ์ด์ฉํ๋ฉด ์ข๋ค. replit.com์ C/C++, C#, ์๋ฐ, PHP ๋ฑ ๊ฝค๋ ๋ค์ํ ์ธ์ด๋ค์ ์ง์ํ๋ค. 2022. 8. 11. ํ์ด์ฌ - ์นด์นด์คํก smtp(๋ฉ์ผ ์ ์ก) ๊ธฐ๋ฅ ์ฌ์ฉํ๊ธฐ ์์ ์ ์น ์นด์นด์ค ๋ฉ์ผ ํ์ด์ง๋ก ๊ฐ์ ์ ํ๊ฒฝ์ค์ ์์ "IMAP / SMTP ์ฌ์ฉ"์ ์ฌ์ฉํจ์ผ๋ก ์ค์ ํด์ค๋๋ค. # -*- coding:utf-8 -*- import smtplib from email.mime.text import MIMEText def sendMail(me, you, msg): smtp = smtplib.SMTP_SSL('smtp.kakao.com', 465) smtp.login(me, '์์ ์ ๋น๋ฐ๋ฒํธ') msg = MIMEText(msg) msg['Subject'] = 'TEST' msg['From'] = me msg['To'] = you smtp.sendmail(me, you, msg.as_string()) smtp.quit() if __name__ == "__main__": sen.. 2022. 7. 29. Scapy - ํ์ด์ฌ Scapy๋ก ์์ดํผ ์คํธํ from scapy.all import * A = "192.168.1.254" # spoofed source IP address B = "192.168.1.105" # destination IP address C = RandShort() # source port D = 80 # destination port payload = "yada yada yada" # packet payload while True: spoofed_packet = IP(src=A, dst=B) / TCP(sport=C, dport=D) / payload send(spoofed_packet) ์ถ์ฒ: https://stackoverflow.com/questions/38956401/ip-spoofing-in-python-3 IP Spoo.. 2022. 7. 27. ์ ๋ ๋์ - ๋ง์ฐ์ค๋ฅผ ๋ ์ธ๊ฐ์ ์ผ๋ก ์กฐ์ํ๊ธฐ(Action ํด๋์ค) https://testmanager.tistory.com/m/119 Selenium Webdriver์์ Action Class๋ฅผ ์ฌ์ฉํ๋ ํค๋ณด๋ ๋ฐ ๋ง์ฐ์ค ์ด๋ฒคํธ ํค๋ณด๋ ๋ฐ ๋ง์ฐ์ค ์ด๋ฒคํธ ์ฒ๋ฆฌ ํน์ ํค๋ณด๋ ๋ฐ ๋ง์ฐ์ค ์ด๋ฒคํธ ์ฒ๋ฆฌ๋ ๊ณ ๊ธ ์ฌ์ฉ์ ์ํธ ์์ฉ API๋ฅผ ์ฌ์ฉํ์ฌ ์ํ ๋ฉ๋๋ค . ์ด ์ด๋ฒคํธ๋ฅผ ์คํํ ๋ ํ์ํ ์กฐ์น ๋ฐ ์กฐ์น ํด๋์ค๊ฐ ๋ค์ด ์ testmanager.tistory.com 2022. 7. 26. ํ์ด์ฌ - pip๊ฐ ์ ๋๋ก ์คํ์ด ์๋ผ์ ํจํค์ง ์ค์น๊ฐ ์๋๋ ๊ฒฝ์ฐ(macOS, Linux) macOS ํน์ Linux์์ pip ์ค์น๊ฐ ์ ๋๋ก ์๋๋ ๊ฒฝ์ฐ๋ ์์ด pip์ ๊ฒฝ๋ก๋ฅผ ์๋ชป ์ค์นํด์ ๋ค๋ฅธ ๊ฒฝ๋ก๋ก ์ค์น๋๋ ์ค๋ฅ์ผ ๊ฒฝ์ฐ๊ฐ ์๋ค. $ which pip output: /usr/local/bin/pip $ cd /usr/local/bin $ sudo rm -r pip* # for each version to remove ์์ฒ๋ผ /usr/loca/bin์ pip๋ค์ ์ ๋ถ ์ญ์ ํด์ python์ bin์ ์๋ pip์ ๋ถ๋ฌ์ค๋๋ก ํ๊ฒฝ๋ณ์ ์ค์ ์ ํด์ผ ํ๋ค. ์๋์ ํ์ค์ ์์ ์ด ์ฌ์ฉํ๋ ์์ ํ๊ฒฝ๋ณ์ ์ค์ ํ์ผ ๋งจ๋ง์ง๋ง์ ์ ์ด์ค๋ค. export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.9/bin" export PATH="$PATH.. 2022. 7. 8. ์ด์ 1 ยทยทยท 5 6 7 8 9 10 11 ยทยทยท 14 ๋ค์ 728x90