Main | Registration | Login Welcome Guest | RSS
Site menu
Catalog categories
Programming Dasar [4]
basic, html, c++, etc
Networking [21]
all about networking ada disini...
Programming Tingkat Tinggi [9]
mau bikin program yang mantab?? disini tempatnya...
Computer [8]
all bout computer in here
Misc. [dan laen laen] [2]
Statistics

Total online: 1
Guests: 1
Users: 0
Main » Articles » Programming Tingkat Tinggi

Menjebol server melalui Service FTP

Menjebol server melalui Service FTP

Oleh scorpionbugs

 

Menjebol server melalui FTP dengan menggunakan scanner cukup mudah. Pertama yang perlu disiapkan adalah scanner, saya menyertakannya sourcenya dalam C. Berikut adalah code yang hanya perlu anda compile dengan gcc -o.

 

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

#include

#define DEF_STR_PORT 1

#define DEF_STP_PORT 1024

#define OXO 1

 

struct sockaddr_in addr;

struct hostent *rh;

struct servent *rp;

 

int sock,i;

int str_ptr, stp_ptr;

int Usage(char *ARG);

int CONNECTION(int port);

 

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

{

if (argc != 4)

Usage(argv[0]);

 

str_ptr = atoi(argv[2]);

stp_ptr = atoi(argv[3]);

if (strcmp(argv[2],"-")==0 &&

strcmp(argv[3],"-")==0){

str_ptr = DEF_STR_PORT;

stp_ptr = DEF_STP_PORT;

}

if ( str_ptr > stp_ptr){

fprintf(stderr,"DetecT ErroR !!! On PortS,

 

 Can't Be Greater

 Than .-\n");

 Usage(argv[0]);

 exit(OXO);

 }

 

 if ((rh=gethostbyname(argv[1])) == NULL){

 fprintf(stderr,"Can't Resolve Host %s

 .-\n",argv[1]);

 Usage(argv[0]);

 exit(OXO);

 }

 

 printf("ScanninG Host %s From %d TcP Port To %d

 .-\n",argv[1],str_ptr,stp_ptr);

 for (i=str_ptr; i <= stp_ptr; i++)

 {

 if (CONNECTION(i)==0)

 {

 rp=getservbyport(htons(i),"tcp");

 printf("Port %d Is Open !!!”)

 

--- Diambil dari Jasakom.com ---

--- Edit by aredie ---



Category: Programming Tingkat Tinggi | Added by: aredie (2008-09-05)
Views: 5804 | Comments: 8 | Rating: 0.0/0 |
Total comments: 0
Name *:
Email *:
Code *:






















Recent Update!




mY Ads
Login form
Site friends
| netsoftwaredevelopment | rhizardhy | sparwasserhq | afifclever | alan | alex | Shitara | blognirey | Bollywood Actress Picture | Bread & Pastry | cellular tip's and trick's | dasir | dee-nesia | flames | Go Adsens | komoditifantasi | logoscom | Mawar | post-B | priwa | ripmaggots | ryan | Si Joe | SI SANCA | Undecided | Veston | www.ucoz.com | international-basketball |
mY Ads
Shout Box
IP
Copyright MyCorp © 2017 | Make a free website with uCoz | Edited By aredie
page counter
HTML Hit Counter