Full Version: Vb6 Question ...
Jeffrey
Hey Guys & Girls....

I have programmed a little port scanner in VB6, using the winsock control....

I can scan myself, and all in my local network... meaning all computers on the LAN, if anybody should be wondering... biggrin.gif

But when i try to scan my friend, i get nothing.... dry.gif

can anybody tell me why ?

Just ask for a little more info...


/Jeffrey
ComSec
have you tried debug... ..and step into etc...see if that pinpoints your problem
Jeffrey
I have tried to debug, looked all of the code through again and again....

Had one of my friends to look it through to.... Nothing.... mad.gif

Getting quite angry at the progy! biggrin.gif
ComSec
nothing blocking like firewalls , routers...will your server allow for scanning other than lan
Jeffrey
Hmmm.m..... It's a great argument, for the prog not to work ...! But the prog, have FULL access through the firewall, but i'll try to kill the firewall, for a second and scan....


EDIT : Damn.... I'm not going to try to scan..... haven't got anybody to scan dry.gif .....


/Jeffrey
ComSec
scan your friends IP ....if you have already then he wont mind...will he ?

btw.. ping the target to make sure they are up before you scan
Jeffrey
No, he wouldn't.... But he's offline.... Well, i'll try tomorrow... biggrin.gif

It's just weird.... All the other things, i have made in VB6, uing socket programming works totally fine over inet....


/Jeffrey
ComSec
used both winsock and inet in some stuff i tinkered with and no problems upto now

let us know how you get on tomorrow

good luck wink.gif
Jeffrey
Thx for the answers dude!

I'll keep posting... biggrin.gif

/Jeffrey
ComSec
no prob

some of our more experienced coders here might be able to pinpoint the problem for you...we have quite a few who know the score

take care
SlippyG
QUOTE (ComSec @ Dec 2 2003, 09:58 PM)
no prob

some of our more experienced coders here might be able to pinpoint the problem for you...we have quite a few who know the score

take care

There isn't actualy any code to discuss. I don't know whether hes using the standard winsock control or calling the API, using simple TCP connection attempts or using IPPROTO_RAW to do a stealth scan and looking for RSTs, polling with select(), callbacks, windows messages... well, you get the idea.

All I know is that hes using vb6, and thats not much of a clue.

Personaly I'd say this ISN'T a coding issue. What are other simple (non-stealth) scanners getting from your friend? Could it be the firewall at the remote side?

Either that or its a perceptual problem. If you are using VB6 then you are probably using the winsock control and using TCP to attempt connection. This is a VERY poor solution and will only warn you about LISTENING ports that ACCEPT your connection request. This will be very few (perhaps none) of the active ports on the remote side.

SG
lmg
Try to scan you friend's host using a known scanner, like nmap. At least, you'll see if problem come from system (firewall, proxy) or your code.
SlippyG
QUOTE (lmg @ Dec 3 2003, 09:35 AM)
Try to scan you friend's host using a known scanner, like nmap. At least, you'll see if problem come from system (firewall, proxy) or your code.

Sorry, I thought I'd suggested that. But then I'm a girl so what would I know tongue.gif *lick*

SG
ComSec
QUOTE
But then I'm a girl so what would I know


well SlippyG...more than most from what i can see from your vb reply and to be honest i only started to mess with code serious a few months back , after trying various languages in the past.

ATM am looking into D++ very interesting and easy to follow to add to my collection ... am no expert in any code section..

but i have created a few programs in VB , Perl , etc and at present have a network tool at beta stage created from various free source code examples that i modified as a learning process and fine tuned by a friend here at the forum ...see screenshot....

so if i get stuck....perhaps you can help me also wink.gif wink.gif
lmg
QUOTE (SlippyG @ Dec 3 2003, 11:56 AM)
QUOTE (lmg @ Dec 3 2003, 09:35 AM)
Try to scan you friend's host using a known scanner, like nmap. At least, you'll see if problem come from system (firewall, proxy) or your code.

Sorry, I thought I'd suggested that. But then I'm a girl so what would I know tongue.gif *lick*

SG

Hum sorry miss ! I have the flu so... But I saw your personnal informations, and your favorite activity... Please, don't flame me wink.gif
coder
if you really want to know what's going on , i'd suggest you use a Packet Sniffer to view all the data that you/winsock are making... you will also be able to see all of the responses to your scans, etc... it's a must for any serious network programmer...
Jeffrey
SlippyG >

I'm using the standard Winsock control..... Yes, i know it's ain't the best..... in fact.... It's the worst... But wtf...

Ain't anything serious with the programs.... Just something little testing thing.... Don't ask me... I'm crazy....

/Jeffrey

Ps. Why all the licking ??? dry.gif laugh.gif
SlippyG
QUOTE (Jeffrey @ Dec 3 2003, 03:02 PM)
SlippyG >

I'm using the standard Winsock control..... Yes, i know it's ain't the best..... in fact.... It's the worst... But wtf...

Ain't anything serious with the programs.... Just something little testing thing.... Don't ask me... I'm crazy....

/Jeffrey

Ps. Why all the licking ???  dry.gif  laugh.gif

Well, if you're using the Winsock control and it works against your local machine then there is not likely to be anything wrong with the code smile.gif It should work on a remote address too.

It realy does sound like either a firewall issue (Either yours or theirs) or that there are no listening ports accepting your connection requests at the other side. Maybe your simplest method of verifying this would be to just telnet to the remote IP/port to verify that it is answering ... If you can telnet in then your code SHOULD also be able to connect and should register the connection.

If you can't telnet it then it simply isnt open smile.gif Which would explain a lot.

If you can, but your code doesnt register it, then its likely you have a code issue.


SG
(okay, okay, I've stopped with the licking.)
Jeffrey
Hey SlippyG!

Thanks for the answer [Hmmm ?.... I can't say dude, to this chick... tongue.gif ] girl... biggrin.gif

It works local, and i tried shutting down my firewall, but still nothing.....
I haven't tried telnetting it yet, but i'll give it a go....

I'll keep posting... rolleyes.gif


ey, and thx for the licking stopped.... laugh.gif Ain't funny getting slobber all over me... laugh.gif


/jeffrey
TeCH-NiNE
its only an idea: has your friend a firewall? tongue.gif probably his fw blocks pings
Jeffrey
I have checked that, he got a firewall, and... i think it's probaly the problem....
But, when scanning myself from another computer on the local network, WITH my firewall (ZoneAlarm) turned on "Medium", i still get my open ports.... ohmy.gif....
SLiM577
intereesting post thanks mates.
Jeffrey
Slim >>> Thx.....


btw.... I still haven't got the scanner working.... But still trying... smile.gif

Best Regards

Jeffrey
Faceless Master
QUOTE (Jeffrey @ Dec 2 2003, 09:21 PM)
Hey Guys & Girls....

I have programmed a little port scanner in VB6, using the winsock control....

I can scan myself, and all in my local network... meaning all computers on the LAN, if anybody should be wondering... biggrin.gif

But when i try to scan my friend, i get nothing.... dry.gif

can anybody tell me why ?

Just ask for a little more info...


/Jeffrey

Well,
You can download some scanner source form ma site
http://www.facelessmaster.tk
Hope they help smile.gif
Have fun
~Faceless Master
Jeffrey
Needed to be a member.... mad.gif

Don't wanna become a member.... rolleyes.gif

But thx anyway dude... smile.gif

/Jeffrey
Faceless Master
QUOTE (Jeffrey @ Jan 10 2004, 06:07 PM)
Needed to be a member.... mad.gif

Don't wanna become a member.... rolleyes.gif

But thx anyway dude... smile.gif

/Jeffrey

You are welcome..
Regards
~Faceless Master
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.