Microsoft pptp vpn vulnerabilities Exploits in Action


© SANS Institute 2000 - 200



Download 2 Mb.
Pdf ko'rish
bet108/144
Sana16.01.2022
Hajmi2 Mb.
#372744
1   ...   104   105   106   107   108   109   110   111   ...   144
Bog'liq
microsoft-pptp-vpn-vulnerabilities-exploits-action 337

© SANS Institute 2000 - 200
                                                5
, Author retains full rights.
 
 
 
 
 
 
 
 
 
 
 
 
Key fingerprint = AF19 FA27 2F94 998D FDB5 DE3D F8B5 06E4 A169 4E46 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Key fingerprint = AF19 FA27 2F94 998D FDB5 DE3D F8B5 06E4 A169 4E46 
 
© SANS Institute 2000 - 200
5                                                                                                                 
Author retains full rights.
73
printf("Write sniffed challenge/responces to output1.\n");
#endif
printf("\t-d\tDevice to open for sniffing.\n");
printf("\t-v\tSome diagnostics.\n\n");
exit(1);
}
void fatal(char const *msg)
{
if (msg == NULL)
perror("anger");
else
printf("%s\n", msg);
exit(1);
}
void decaps_gre(const unsigned char *buffer, int status)
{
struct ip *ip;
struct pptp_gre_header *header;
ip = (struct ip *)buffer; 
if (ip->ip_v != 4)
fatal("No IP header!");
header = (struct pptp_gre_header *)(buffer + (ip->ip_hl * 4));
/* verify packet (else discard) */
if (((ntoh8(header->ver)&0x7F)!=PPTP_GRE_VER) || /* version should be 1   */
(ntoh16(header->protocol)!=PPTP_GRE_PROTO)|| /* GRE protocol for 
PPTP */
PPTP_GRE_IS_C(ntoh8(header->flags)) ||      /* flag C should be clear */
PPTP_GRE_IS_R(ntoh8(header->flags)) ||      /* flag R should be clear */
(!PPTP_GRE_IS_K(ntoh8(header->flags))) ||   /* flag K should be set   */
((ntoh8(header->flags)&0xF)!=0))    /* routing and recursion ctrl = 0 */
{
/* if invalid, discard this packet */
if (debug)
printf("Discarding GRE: %X %X %X %X %X %X",
ntoh8(header->ver)&0x7F, ntoh16(header->protocol),
PPTP_GRE_IS_C(ntoh8(header->flags)),
PPTP_GRE_IS_R(ntoh8(header->flags)),
PPTP_GRE_IS_K(ntoh8(header->flags)),
ntoh8(header->flags)&0xF);
return;
}
0



Download 2 Mb.

Do'stlaringiz bilan baham:
1   ...   104   105   106   107   108   109   110   111   ...   144




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish