Penjebolan Server Melalui FTP

View previous topic View next topic Go down

Penjebolan Server Melalui FTP

Post by dr.vaako on Fri Nov 09, 2007 9:43 am

Pada article ini akan memberikan sedikit trik bagaimana melakukan penjebolan
server melalui FTP. Untuk lebih jelasnya akan kita ikuti langkah-demi langkah
code di bawah ini. Pertama yang perlu disiapkan adalah scanner, saya
menyertakannya sourcenya dalam C.

Mari kita lihat contoh coding nya di bawah ini :



#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 !!!

Razz

_________________
"gOOd bYe mY LovE..."

dr.vaako
mahasiswa
mahasiswa

Male
Number of posts : 36
Location : spooky island
Registration date : 2007-10-30

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum