OICQ login number cleaner implementation principle

zhaozj2021-02-17  57

OICQ login number cleaner implementation principle

OICQ has become the most stylish chat in this network world. For it, many programmers have written some relevant gadgets, like some OICQ chat aids, OICQ password acquisition, chat record viewer, etc. They are used as different purposes, respectively.

At the time, I also obsessed with QQ this good stuff, but in the use process, I have always found some cases that I don't want to see. For example: after Internet cafes, after crazy QQ, your chat record, your QQ number is left in the machine's machine. At this point, you leave from the Internet cafes. Another chat QQ person, this person may later like to engage in prank, with some gadgets, steal your QQ number and password, for use. Or look at your chat history, explore your privacy, which is obviously not what you want. May, you will think, this is nothing, I just want to delete the QQ number that folder. Yes, this is really a good way, but this is still a problem that you can't solve it, that is, your QQ will still stay in the QQ login dialog, then what should you do? This article is to introduce how to achieve the clear login number!

I don't know the careful QQ user noticed that there is no DAT folder under the QQ home directory, and there is an OICQ2000.cfg file under this folder. This file has how many QQ numbers have a QQ number on this table, the length value of each number, each specific number! Let's take a detailed introduction to this file and explain how to implement it!

The following example is on the author's file content: (number of QQ files for the author)

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 005 33 37 34 38 38 37 36

The above file content is one byte every two words

The first 9 bytes is the total number of QQ number on the machine, a maximum of 999 999 999 (a lot of it) followed by three bytes 000 000 This is the delimiter. Next, it is one byte data 08 that indicates that the length of the current QQ number is several, and 08 is represented as 8 bits, and then it is a separator, and then uses this length value byyle to store the actual QQ number ASCII code value! If there are multiple, then store the separator (3 bytes), QQ number length (1 bytes), separator (3 bytes), actual number, and push it ............

The sample code is as follows:

Struct QQHEAD

{

Unsigned char head [9]; / / total QQ number 9 bytes

Unsigned char SPEA [3]; // Delivery, 3 bytes

}; //Oicq2000.cfg file head structure

QQhead thishead;

// m_filename is the file name to operate, that is, OICQ200.cfg, store QQ completion path

Ofile.open (M_FileName, Cfile :: ModeRead, & Fe); // Open OICQ2000.cfg file

Ofile.read (thishead.Head, 9); // read the file header, QQ number

Long i, sum = 0;

Int number;

For (i = 0; i <8; i )

{

Number = thishead.Head [i];

SUM = SUM NUMBER * 10 ^ (7-i);

} // Test the number of QQ numbers

Number = thishead.Head [8];

Sum = SUM NUMBER;

CString Str, Stritem, Leng;

UNSIGNED CHAR LEN [1];

CHAR STRITEM1 [99];

Number = 0;

Ofile.read (thishead.SPEA, 3); // Read the separator

For (i = 0; i

{

Ofile.read (len, 1); // read the length of the QQ number;

Ofile.read (thishead.SPEA, 3); // Read the separator

Number = le [0];

OFLILE.READ (Stritem1, Number);

Stritem1 [Number] = '/ 0';

Clistbox * plist;

PLIST = (ClistBox *) getdlgitem (IDC_LIST1);

Str.Format ("% s", stritem1);

PLIST-> AddString (STR); / / loop insertion list and display it

}

The above code is to read all QQ numbers from the OICQ2000.cfg file and display the features in the ListBox control. I believe that the reader has already understood!

Of course, the function I have to do is to double-click a QQ number in the Listbox to remove it from the OICQ2000.cfg. The reader's reference should be completed soon!

Know the above principles, then we can write the following code segment to complete the program deposited from the file! (Sample code is the software part of the software released. QQ login number clearance is the author I A fully shared QQ gadget, software download address is http://free.tsee.net/acehq/hidenum.exe. You can also find 9CBS website registration software, the link address is http: //www.9cbs. NET / CNSHARE / SOFT / 10 / 10135.HTML! Software realizes VC 6.0, WindowQs 2000 Server operating system, Celeron 667, 30G hard drive, 128M memory

转载请注明原文地址:https://www.9cbs.com/read-30150.html

New Post(0)