Forum
 
Go Back   D3scene > Development > General Programming
Check out our store for super cheap gaming deals. You will like it, especially the fast delivery and low price.
Free Registration Blogs Downloads D3Live! FAQ Members List Calendar Search Today's Posts Mark Forums Read TS2

Our highly recommended store
We here on D3scene are partners of Offgamers. They offer virtual products, such as CD-Keys, Services and ingame Currency for almost every game. We love them and you will love them!
Cheap CD-Keys
Offgamers is the only store that offers CD-Keys below the market price. When getting banned on games you are forced to get a new CD-Key, we are doing so with Offgamer's CD Keys. You are able to game again in less than an hour!
Leveling services
Offgamers has a team of expert levelers. They are highly skilled and know how to level you up very fast. If you have too less time to level on your own then use Offgamers - we do aswell!
Why we use Offgamers
Our D3scene.com community gets products from Offgamers since 2 years. Read our testimonals and you will see why we do so. There is no other shop that is that fast and secure.

[C++] Port Scanner

This is a discussion on [C++] Port Scanner within the General Programming forum part of the Development category; /* ** C++ Port Scanner ** Written by Kr3w */ #include <iostream> #include <windows.h> #include <winsock.h> #include <stdio.h> #define MAX ...

Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 35000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community!
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-07-2007, 03:21 PM
Don_SyStEmS's Avatar
www.jewdy-united.com
 
Join Date: May 2007
Location: Hamburg [GERMANY]
Posts: 587
Reputation: 511
Rep Power: 4
Don_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of light
Send a message via ICQ to Don_SyStEmS Send a message via MSN to Don_SyStEmS Send a message via Yahoo to Don_SyStEmS
[C++] Port Scanner


Have a look at our store

/*
** C++ Port Scanner
** Written by Kr3w
*/

#include <iostream>
#include <windows.h>
#include <winsock.h>
#include <stdio.h>

#define MAX 65536

using namespace std;

int main(int argc, char *argv[])
{

WSADATA sox;
WSAStartup(0x0202, &sox);

int x, s, con, open[MAX], temp;
LPHOSTENT ip;

cout << "Scanning: " << argv[1] << endl;

x = 1;

while(x < MAX-1) {

s = socket(2, 1, 6);

ip = gethostbyname(argv[1]);

struct sockaddr_in pscan;

pscan.sin_family = 2;
pscan.sin_port = htons(x);
pscan.sin_addr = *((LPIN_ADDR)*ip->h_addr_list);

con = connect(s, (struct sockaddr *)&pscan, sizeof(pscan));

if(con == -1) {
cout << "Closed " << x << endl; open

* = 0; }

else {
open

* = x; cout << "Opened: " << x << endl; }


closesocket(s);

++x;

}

temp = 1;

while(temp < MAX) {
++temp;
if(open[temp] != 0)
cout << "Open: " << open[temp] << endl; }

getchar(); // wait

WSACleanup();

return 0;

}

Check out our store
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
  #2  
Old 10-08-2007, 08:13 PM
Wannabe Member
 
Join Date: Sep 2007
Posts: 11
Reputation: 0
Rep Power: 2
Chemical-_- is an unknown quantity at this point
hmm..some details mabye? : D
Reply With Quote
  #3  
Old 10-08-2007, 09:51 PM
Don_SyStEmS's Avatar
www.jewdy-united.com
 
Join Date: May 2007
Location: Hamburg [GERMANY]
Posts: 587
Reputation: 511
Rep Power: 4
Don_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of light
Send a message via ICQ to Don_SyStEmS Send a message via MSN to Don_SyStEmS Send a message via Yahoo to Don_SyStEmS
if you know the prog c++ you need no details...
try und you will learn
Reply With Quote
  #4  
Old 10-09-2007, 12:23 AM
Wannabe Member
 
Join Date: Sep 2007
Posts: 11
Reputation: 0
Rep Power: 2
Chemical-_- is an unknown quantity at this point
well..and just for the ones who dont know the "program" C++ but still want use it?...
Reply With Quote
  #5  
Old 10-10-2007, 01:04 AM
Don_SyStEmS's Avatar
www.jewdy-united.com
 
Join Date: May 2007
Location: Hamburg [GERMANY]
Posts: 587
Reputation: 511
Rep Power: 4
Don_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of lightDon_SyStEmS is a glorious beacon of light
Send a message via ICQ to Don_SyStEmS Send a message via MSN to Don_SyStEmS Send a message via Yahoo to Don_SyStEmS
if you a newbie in c++ look A C++ Tutorial for Complete Beginners # 1 by Jared Devall
look there.
i think the nice guy want to help you
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Port opening problems.. Draxle42 WoW Private Server Info & Help 1 07-14-2007 08:54 AM
VirusTotal: Scan a file with multiple virus scanner engines talkar WoW Support 2 06-24-2007 08:20 PM
[Guide] How to Port Forward Mitch Computer guides 6 04-16-2007 03:44 AM


All times are GMT +1. The time now is 05:12 AM.


vBulletin style developed by Transverse Styles
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

»About D3scene »Navigation