PDA

View Full Version : บทที่1 การ cracking program ที่เขียนด้วย c++ อย่างง่าย



asylu3
06-10-2004, 06:55 PM
เห็นหลายคนในเว็บนี้ให้ความสนใจด้านี้มากผมเองเลยลองทำบทความมาให้ศึกษากันดู ก่อนอื่นบทความแรกนี้ก็อยากให้ลอง crack password ง่ายๆจากโปรแกรมที่ผมเขียนจากโค้ดนี้ดูนะครับ

#include < iostream.h >
#include < string >
#define mypass "password" //disire password

using namespace std;
void main()
{
char input[255];
std::string passwd;
do{
cout<<"please enter password:";
cin>>input;
passwd=input;
if(passwd!=mypass) cout<<"Invalid passwd:n";

}while(passwd!=mypass);

cout<<"Correct Password:n";

}

ใครที่ไม่อยาก compile sourcecode เองก็ลองเอา file นี้ไป run ดูได้เลยนะครับ(ปลอดไวรัสครับไม่ต้องห่วง) pwd.zip (http://seri.kmutt.ac.th/cs02/citec/forum2/misc.php?action=downloadfile&FileID=140)ผมจะยังไม่เฉลยนะครับว่ารหัสที่ถูกต้องคืออะไรใครที่ได้แล้วก็ post คำตอบไว้ก่อนเลยนะครับผมจะมาเฉลยแล้วก็บอกวิธีทีหลัง

Zephyrus
06-10-2004, 10:59 PM
123456 ครับ :-)

asylu3
07-10-2004, 01:30 AM
Welldone!!, Actually it was really easy. You can use any deassembly tool to searching for desire passwd. If any body had any other solution, I glad to hearing from u.

Anonymous
11-10-2004, 12:40 PM
ใช้ program ตัวไหนงะ

asylu3
11-10-2004, 11:03 PM
จริงๆแล้วที่ผมใช้ก็แค่โปรแกรม dumpbin (เครื่องมือที่แถมมากับ MS Visual Studio) แต่ถ้าหากไม่มีก็สามารถใช้ตัวนี้ทดแทนได้
http://seri.kmutt.ac.th/cs02/citec/forum2/...692&page=0#3668 (http://seri.kmutt.ac.th/cs02/citec/forum2/viewtopic.php?TopicID=1692&page=0#3668)

Itnojoke
06-11-2004, 06:02 PM
ทำไงครับสอนผมบ้างดิๆๆ ขอร้องให้ผมกราบเท้าก็ได้ ถึงมานจะเป็นเรื่องพื้นฐานแต่ผมไม่รู้ทำไงอะ

Itnojoke
06-11-2004, 06:05 PM
เอางี้นะครับถ้าใคร อยากจใหความกรุณาสอนคนโง่ๆอย่างผมก็แอดอีเมลไปหาผมคุยกับผมนะครับที่ itnojoke@hotmail.com ถ้าแอดมาหาผมจะเป็นความกรุณาอย่างสูง

Zephyrus
14-11-2004, 08:49 PM
ใช้ Disassembler เอาครับ Tools ก็พวก IDE,dumpbin ใน VC ก็มีให้ครับ แต่ต้องทำความเข้าใจกับ concept ของ file ใน windows ด้วยครับ

(เก่ง Assembly จะได้เปรียบมากๆ)

ถ้าผมผิดพลาดอย่างไรก็ขออภัยครับ เขียนตามความเข้าใจของตัวเอง