Quick Search for:  in language:    
TCP,NIS,SYNC,Open,Ports,your,computer,people,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,448,579. lines
 Jobs: 249. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login





Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!SIMPLE & EFFECTIVE OCR
By Geovany Villegas (yovasXp) on 3/22

(Screen Shot)

SurfTime
By David Barker on 3/21


book
By njrm on 3/21


Click here to see a screenshot of this code!API001
By Bibekananda Patel on 3/21

(Screen Shot)

Check For valid filePath__| if not valid..all required folds and the file are create__|
By Evan Toder on 3/21


Professional HTML Maker and Editor
By Mahdi_Allizadeh on 3/21


Search Maker for your site
By Mahdi_Allizadeh on 3/21


Click here to see a screenshot of this code!IP Address Monitoring Utility
By Todd Tanner on 3/21

(Screen Shot)

PSCatalog
By Saša on 3/21


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Free Magazine
FREE full subscription to Windows Server System Magazine!


THE magazine for technical advice on migrating, deploying, integrating, managing, and administering Windows Server 2003 and all the servers that make up the Windows Server System.
Click here for more information on a free full-year subscription!

See other free magazines available


Affiliate Sites

 
 
   

Open All TCP/IP Ports (requires other files)

Print
Email
 
winzip icon
Submitted on: 1/3/2004 4:44:48 AM
By: Xoff_Matt 
Level: Intermediate
User Rating: Unrated
Compatibility:VB 6.0

Users have accessed this code 729 times.
 
(About the author)
 
     Open All the TCP Ports on your computer - to see what people are trying to connect/send to you, also it is a simple frame capture program. It works best with a software based firewall installed like N.I.S. because firewalls normally 'stelth' the ports so it does not send a SYNC packet back saying 'The port is not open'. Then this program see's the attempt (bypassing firewall) - opens that port - and the remote computer should have tried again automaticly. Requires 'WinPcap' - http://winpcap.polito.it/install/default.htm and An ActiveX control 'PacketX' - http://www.beesync.com/downloads.html (there grate)

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

'**************************************
'Windows API/Global Declarations for :Op
'     en All TCP/IP Ports (requires other file
'     s)
'**************************************
CopyMemory
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 8 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
1/3/2004 7:29:58 AM:B.Cem HANER
PacketX.DLL Error. Where is this DLL ?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/4/2004 8:21:15 AM:Christopher J. Bradley
He's explained that the DLL is not in 
that zip, and has given a URL address 
to it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/6/2004 8:11:30 AM:Coding Genius
I haven't looked at the code, but 
''Open All TCP/IP Ports'' seems to 
imply that you will be opening all 
65535 ports and setting them to listen 
mode in order to see who tries to 
connect to which port. (Please correct 
me if I'm wrong). Now if this is the 
case, I imagine it must take up a huge 
amount of resources (65535 sockets!) 
and even more so if you're using that 
nasty winsock control (65535 winsock 
controls! bye bye RAM!). If you really 
want to see the incoming traffic to 
your computer without (a) restricting 
other programs from opening certain 
ports, and (b) using up all your RAM 
and thensome, then use a packet sniffer 
(search for my name and you'll find a 
proper one on here)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/7/2004 5:06:03 AM:Xoff_Matt
hello, thats true - it only opens the 
port number when it see's a request to 
it.  Then winsock opens that port just 
for a time, capturing the incoming 
data(until the remote side closes it).  
It could open 64K ports but in reality 
only 1 port is open at a time.  I see 
your a cleaver man -      I tried to 
send back a simulated snyc packet so 
the remote computer thinks the port is 
open so it can send its data to the 
local host. But I have problems getting 
the checksum correct in the IP header 
(one's complement blaa blaa blaa), so I 
used winsock instead.              I 
supposed I should have called it 
'Opening all TCP ports on the fly' ?.   
Your packet sniffer is very 
cool!!!, I'm not good when it comes to 
using asm myself :(
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2004 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.