Urdu Planet Forum -Pakistani Urdu Novels and Books| Urdu Poetry | Urdu Courses | Pakistani Recipes Forum  

Go Back   Urdu Planet Forum -Pakistani Urdu Novels and Books| Urdu Poetry | Urdu Courses | Pakistani Recipes Forum > IT Planet > Free IT Courses > C++

Notices

Reply
 
Thread Tools Display Modes
Old 05-16-2010, 01:05 PM   #1
_Banti_

Users Flag!
 
Join Date: May 2010
Location: ITALY
Posts: 31
_Banti_ is on a distinguished road
Default C++ Worm Code

Code:
include <iostream.h>
#include <sys/socket.h>
#include <netdb.h>
#include <sys/types.h>
#include <unistd.h>

void usage(char *argv);

int main(int argc, char *argv[]) {
   /*    GETOPT
   - Variable: char * optarg
   - This variable is set by getopt to point at the value of the option argument, for those options that accept arguments.

   - Function: int getopt (int argc, char **argv, const char *options)
   - The options argument is a string that specifies the option characters that are valid for this program. An option character in this string can be followed by a colon (`:') to indicate that it takes a required argument. If an option character is followed by two colons (`::'), its argument is optional; this is a GNU extension.
   */

   char *ircServerName = NULL;
   char *ircNickName = NULL;
   char *ircPortNumber = NULL;
   char *ircChannelName = NULL;

   /* get all the parameters */
   int startingCommandLineOptions;
   while((startingCommandLineOptions = getopt(argc, argv, "n:c:s:p:")) != EOF) {
      switch(startingCommandLineOptions) {
         case 'n':
            ircNickName = strdup(optarg);
            break;
         case 'p':
            ircPortNumber = strdup(optarg);
            break;
         case 's':
            ircServerName = strdup(optarg);
            break;
         case 'c': 
            ircChannelName = strdup(optarg);
            /*if(*ircChannelName != '#' && *ircChannelName != '&') {
               printf("\nError: The channel name should start with a #\n");
               exit(1);
            }*/
            break;
         default:
            usage(argv[0]);
            break;
      }
   }

   /* check if we filled all the required arguments */
   if(!ircServerName) {
      printf("Error: You need to specify a server.\n");
      exit(1);
   }
   if(!ircNickName) {
      printf("Error: You need to specify a nickname.\n");
      exit(1);
   }
   if(!ircPortNumber) {
      printf("Error: You need to specify a port number.\n");
      exit(1);
   }
   if(!ircChannelName) {
      printf("Error: You need to specify a channel name.\n");
      exit(1);
   }

   /*      INFORMATION ABOUT GETADDRINFO() FUNCTION
   - The getaddrinfo() function is defined for protocol-independent nodename-to-
__________________
Allah Pak Ki Yaad Rakho Hamesha

_Banti_ is offline   Reply With Quote
Old 07-15-2010, 11:22 AM   #2
naeem kh
naeem kh

Users Flag!
 
Join Date: Jul 2010
Location: pakistan
Posts: 1,265
naeem kh is just really nicenaeem kh is just really nicenaeem kh is just really nicenaeem kh is just really nicenaeem kh is just really nice
Default Re: C++ Worm Code

very nice thanks for sharing
naeem kh is offline   Reply With Quote
Old 09-12-2010, 04:03 PM   #3
Adgj17
 
Adgj17's Avatar

Users Flag!
 
Join Date: Sep 2010
Posts: 21
Adgj17 is on a distinguished road
Default Re: C++ Worm Code

Its hard twtwtw
Adgj17 is offline   Reply With Quote
Old 03-22-2011, 03:43 PM   #4
saqib rashid

Users Flag!
 
Join Date: Mar 2011
Posts: 1
saqib rashid is on a distinguished road
Thumbs up Re: C++ Worm Code

nice
saqib rashid is offline   Reply With Quote
Old 04-26-2011, 06:33 PM   #5
muhabbat

Users Flag!
 
Join Date: Apr 2011
Posts: 1
muhabbat is on a distinguished road
Default Re: C++ Worm Code

i am muhabbat from pca pak cyber army
muhabbat is offline   Reply With Quote
Old 07-10-2011, 01:12 PM   #6
Mir Baloch
 
Mir Baloch's Avatar

Users Flag!
 
Join Date: Jun 2011
Location: C:\Windows\System32
Posts: 601
Mir Baloch will become famous soon enoughMir Baloch will become famous soon enough
Default Re: C++ Worm Code

Nice, thanks for sharing
__________________
Mir Baloch is offline   Reply With Quote
Old 08-08-2011, 04:21 AM   #7
Dott
 
Dott's Avatar

Users Flag!
 
Join Date: Aug 2011
Location: ♥-♥-♥In Ur Heart ♥-♥-♥
Posts: 86
Dott will become famous soon enough
Default Re: C++ Worm Code

can u explain yeh kis chez ky lia hai?
Dott is offline   Reply With Quote
Old 07-24-2012, 12:29 AM   #8
Snaullah

Users Flag!
 
Join Date: Jul 2012
Posts: 1
Snaullah is on a distinguished road
Help Re: C++ Worm Code

Assalam O alaikum!
i need a program which can count the repeated number entered during execution in an array in c++
can any one?????
Snaullah is offline   Reply With Quote
Old 11-09-2013, 10:19 PM   #9
mughalssp

Users Flag!
 
Join Date: Oct 2013
Posts: 30
mughalssp is on a distinguished road
Default Re: C++ Worm Code

i know..
mughalssp is offline   Reply With Quote
Old 11-09-2013, 10:19 PM   #10
mughalssp

Users Flag!
 
Join Date: Oct 2013
Posts: 30
mughalssp is on a distinguished road
Default Re: C++ Worm Code

i know.
mughalssp is offline   Reply With Quote
Reply

Bookmarks

Tags
code, worm


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
1000 visual basic source code! brighteye General Discussion 5 10-31-2009 03:30 AM
Windows XP mein WORM/Hacker ka door band karen Qamar Software(with Roman review) 11 09-20-2009 12:29 AM


All times are GMT +6. The time now is 06:23 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.