473,385 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Port Scanner

1
Hey All
I need Your help!
I have to implement port scanner, which will scan using SYN, FIN, ACK packets.
Could somebody post an example on C#.
How could I build the suitable header and how to get and check the answer?

Thanks
Jun 27 '07 #1
2 1922
ittar
1
Dear xruxru,

I have code in c++ if you still want it. but you will have to import some DLLs. I am also working on port scanning but my project is a bit different. I am trying to construct raw packet with different flags on. If you have some information on that please share with me.

Thanking You,
Ittar Waqas

Hey All
I need Your help!
I have to implement port scanner, which will scan using SYN, FIN, ACK packets.
Could somebody post an example on C#.
How could I build the suitable header and how to get and check the answer?

Thanks
Jul 17 '07 #2
hi,
I have used the following code for port scanner
================================================== =
ArrayList ports = new ArrayList();
for( int i=1 ; i<65555; i++)
{
try{
TcpClient c = new TcpClient( remote_ip, i);
c.Close()
ports.Add( i);
}catch{}
}=============================================

but when I run this code with a remote IP, it gives a message that Remote machine has actively refused connection.
what should I do now? Please help me out.

Thanks in Advance,
-rajesh
Oct 1 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
1
by: PW | last post by:
I have to setup a point-of-sale system for a friend. He has a PC, barcode scanner, receipt printer and cashdrawer. The receipt printer connects to the serial port. The cashdrawer connects to...
3
by: Jonny | last post by:
My scanner will be used to identify what services are running on a particular system on a closed network. Just wondering if there are any specific ports that i should watch/scan. thanks, ...
1
by: IceColdFire | last post by:
Hi, I need to build a port scanner ,able to scan a remote computer ports.... Kindly help ciao. AA
1
by: Paula | last post by:
I have done a lot of research trying to figure out how to read from a com port that has a scanner connected to it. In VB6 it was easy to use the MSComm control. Does anyone have any suggestions on...
5
by: Darrell Wesley | last post by:
Is there a good source of information on how to read a USB port, in particular reading data from a BarCode reader?
6
by: Marc | last post by:
How could I directly trigger a very simple on localhost and a known port listening server from my internet browser client? Local host means the little server would be running on the client machine,...
0
by: pandi | last post by:
Hi, I am using a check scanner.It has functions which gives output like image ,checknumber. i am using serial port to get this output in my coding. My problem is i am not able to read the display...
5
by: Tony K | last post by:
I have a slight problem. When attempting to receive data via my serial port I sometimes do not get the complete data. For example, I have a scanner that reads barcodes. When reading barcode...
1
by: sdbranum | last post by:
For those who have found it impossible to get help in communicating with Wasp's WDT-2200 Barcode Scanner through a COM Port, except by using their supplied DTComm software, I am presenting what I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.