中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-25 19:19
47,812 topics / 349,910 posts / today 0 new / 48,263 members
其它操作系统综合讨论区 » Using DOS commands to check a QQ friend's IP address [repost]
Printable Version  1,234 / 6
Floor1 ko20010214 Posted 2003-06-11 00:00
版主 Posts 1,628 Credits 7,296
Author: Canglangke / Pacific Network Institute





  Do you really need to go through this much trouble to check a QQ friend's IP address? Wouldn't it be enough to just patch QQ? True, that is very simple, but what if it's a newly released QQ and the "patch" hasn't been made yet? Then use software like IpSniper. But what if you don't have it on hand and urgently need to check it? You could use other software, for example... alright, no matter how you put it, it's still somebody else's software. So why not try DOS commands? It's simple, convenient, and very environmentally friendly (unlike application software, which has to be installed separately and take up hard disk space, and also uses up the same resources when running).

  Enough talk, let's officially begin. First, use sweet talk, sugar-coated shells, or similar weapons to "invite" the person whose IP address you want to know into QQ's "two-person world." Next, open a DOS window (under Win9x it's called DOS; under Win2000 it's called the command prompt). Enter the following command:

  netstat -n

  You will see:

  Active Connections
  Proto   Local Address   Foreign Address    State
  TCP  202.109.34.78:1200  202.121.139.35:61555  ESTABLISHED
  TCP  202.109.34.78:2694  202.109.72.40:6667   ESTABLISHED
  TCP  202.109.34.78:4869  211.202.1.227:23    ESTABLISHED

  Good grief, so many IPs! Which one is the one we're looking for? Don't worry, keep reading. Now exit the "two-person world," then enter this once again under DOS:

  netstat -n

  You will see:

  Active Connections
  Proto   Local Address    Foreign Address    State
  TCP   202.109.34.78:1200  202.121.139.35:61555  TIME_WAIT
  TCP   202.109.34.78:2694  202.109.72.40:6667   ESTABLISHED
  TCP   202.109.34.78:4869  211.202.1.227:23    ESTABLISHED

  Can you see the difference between the two results? Still don't see it? Look carefully, and you will notice:

  Originally: TCP 202.109.34.78:1200 202.121.139.35:61555 ESTABLISHED
  Now: TCP 202.109.34.78:1200 202.121.139.35:61555 TIME_WAIT

  Alright, now you should know, right? That's right! The IP of the person chatting with you is: 202.101.139.35! So how do we know that? Friends, when you're in the "two-person world" sending messages, a connection must naturally be created between the two sides (through the UDP protocol), so at that time it is naturally "ESTABLISHED" (judging from your netstat -n result); and after exiting the "two-person world," the connection is broken, so naturally it becomes "TIME_WAIT."

  Pretty simple, right? This method doesn't use a single external piece of software (netstat is a Windows-built-in external command). Isn't it just as simple, convenient, and environmentally friendly as we said earlier? Why not try it now!



-------------Personal signature---------------
Casting flirtatious glances in secret means the dark night delivers you autumn spinach.
------------------------------------

==============
KO says:
Actually this article doesn't have much to do with DOS, hehe...
It just uses a DOS command. (Even so, it's a Windows DOS command, not a pure DOS command...) And it's also run in a Windows environment.

It would be better to say it's checking QQ IP numbers in a "command-line" way...
Floor2 myfilm Posted 2003-06-21 00:00
初级用户 Posts 8 Credits 137
Awesome!
Floor3 zhaolj1983 Posted 2003-06-22 00:00
初级用户 Posts 5 Credits 125
Floor4 ko20010214 Posted 2003-06-22 00:00
版主 Posts 1,628 Credits 7,296
You don't need to understand it; you just need to follow the steps and you'll get the above result.
There are many things you only understand after you put them into practice.
You can't understand them just by reading a post and thinking about it with an empty head.
Floor5 leslie Posted 2003-06-23 00:00
初级用户 Posts 16 Credits 178
Why is it that after I type netstat -n
none of those IP addresses are displayed?》?????


Floor6 ko20010214 Posted 2003-06-23 00:00
版主 Posts 1,628 Credits 7,296
What system are you using (DOS, win9x, win2000, winxp)?
In what state? (pure DOS, Windows DOS window)
Are you connected to the network or not?
Floor7 万丈 Posted 2003-07-08 00:00
初级用户 Posts 4 Credits 121
It seems netstat -na is what displays numeric IPs; with just -n it displays machine names.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023