what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

feprobe.c

feprobe.c
Posted Aug 17, 1999

No information is available for this file.

tags | spoof
systems | unix
SHA-256 | 41f2c762526b8602548041c64d91f80b18a549ed4cdeee99fcf664263673d8e8

feprobe.c

Change Mirror Download
#include "tcpip.h"

void ssyn(int sendsock, u_long srcaddr, u_long dstaddr, u_short srcport,
u_short dstport, u_long seq)
{
char *pack, *tpack;
int sent;
struct sockaddr_in stuffz;

tpack = create_tcp(htons(srcport),
htons(dstport), htonl(seq), 0, TH_SYN, NULL, 0);
pack = create_ip (srcaddr, dstaddr, IPPROTO_TCP, 75, 1,
tpack, 20);
stuffz.sin_family = AF_INET;
stuffz.sin_port = htons(dstport);
stuffz.sin_addr.s_addr = dstaddr;
sent = sendto(sendsock, pack, 40, 0, (struct sockaddr *)&stuffz,
sizeof(stuffz));
if (sent != 40) { perror("sending SYN"); exit(-1); }
}
int getpack(int listsock, u_long srcaddr, u_long dstaddr, u_short srcport,
u_short dstport, u_long seq)
{
return 1;
}

main (int c, char *v[])
{
int ssock, lsock;
struct hostent *hent;
struct servent *srvent;
u_long us, them, fuckk;
u_short sport, eport;
u_short skrap;
u_char flags;
struct tcphdr *tcphead;
/* char pass[8]; */

if (c!=5) { printf("usage: %s <host> <start port> <end port> <from host>\n", v[0]);
exit(-1); }
/* strncpy(pass, getpass("Password: "), 8);
* if (!strncmp(pass, "r@1$xz%#", 8)) { printf("right!\n"); } else {
* printf("wrong - bye bye\n"); exit(0); }
*/
hent = gethostbyname(v[4]);
if (hent == NULL) {
printf("couldn't get \"from\" hostname!@#\n");
exit(-1);
}
bcopy(hent->h_addr, (char *)&us, hent->h_length);
hent = gethostbyname(v[1]);
if (hent!=NULL)
bcopy(hent->h_addr, (char *)&them, hent->h_length);
else {
printf("could not resolve: %s\n", v[1]);
exit(-1);
}
sport = atoi(v[2]);
if (sport==0) {
printf("can't use %s as a starting port..\n", v[2]);
exit(-1);
}
eport = atoi(v[3]);
if (eport==0) {
printf("can't use %s as an ending port..\n", v[3]);
exit(-1);
}
ssock = socket(AF_INET, SOCK_RAW, 255);
if (ssock == -1) { perror("getting send socket"); exit(-1); }
lsock = socket(AF_INET, SOCK_RAW, 6);
if (lsock == -1) { perror("getting listen socket"); exit(-1); }
printf("sending fake half-open scan to %s from %s\n", v[1], v[4]);
for (skrap=sport;skrap<eport+1; skrap++) {
ssyn(ssock, us, them, getpid()+skrap, skrap, 10000000+skrap+getpid());
usleep(100);
}
}
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close