-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmailagent.pms
41 lines (40 loc) · 1.87 KB
/
mailagent.pms
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
import os
flags_file_path = os.path.join(os.getcwd(), 'helloword.tms')
with open(flags_file_path, 'r') as file:
lines = file.readlines()
Entered_CyberX = lines[0].split('=')[1].strip()
Got_the_first_task = lines[1].split('=')[1].strip()
Has_successfully_hacked_first_computer = lines[2].split('=')[1].strip()
Started_hacking_walter = lines[3].split('=')[1].strip()
Successfully_hacked_walter = lines[4].split('=')[1].strip()
Started_hacking_Emily = lines[5].split('=')[1].strip()
Successfully_hacked_emily = lines[6].split('=')[1].strip()
Started_Hacking_Elliot = lines[7].split('=')[1].strip()
Successfully_Hacked_Elliot = lines[8].split('=')[1].strip()
Started_Hacking_Joe = lines[9].split('=')[1].strip()
Successfully_hacked_Joe = lines[10].split('=')[1].strip()
Started_Hacking_Draps = lines[11].split('=')[1].strip()
Successfully_Hacked_Draps= lines[12].split('=')[1].strip()
Started_Hacking_Mark = lines[13].split('=')[1].strip()
Hacked_Mark = lines[14].split('=')[1].strip()
Started_Hacking_Luke = lines[15].split('=')[1].strip()
Hacked_Luke = lines[16].split('=')[1].strip()
Started_Hacking_Candy = lines[17].split('=')[1].strip()
Hacked_Candy = lines[18].split('=')[1].strip()
Started_Hacking_Mirek = lines[19].split('=')[1].strip()
Hacked_Mirek = lines[20].split('=')[1].strip()
Left_by_cyberx = lines[21].split('=')[1].strip()
Approached_by_the_thousandth_sun = lines[22].split('=')[1].strip()
with open("userdata.tms", "r") as file:
data = file.readlines()
username = data[0].strip()
hostname = data[1].strip()
with open("progress.dat", "r") as file:
data = file.readlines()
sender = data[1].strip()
message = data[2].strip()
UserMail = username + "@" + hostname
print("To: " + UserMail)
print("From :" + sender)
print("================================")
print(message)