-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneric3.html
199 lines (183 loc) · 8.55 KB
/
generic3.html
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE HTML>
<html>
<head>
<title>Activity 3 - DigitalFIRE-WebStyle</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="inner">
<!-- Logo -->
<a href="index.html" class="logo">
<img src="images/TTUCS-logo.JPG" alt="" />
<!--<span class="symbol"></span><span class="title"></span>-->
</a>
<!-- Nav -->
<nav>
<ul>
<li><a href="#menu">Menu</a></li>
</ul>
</nav>
</div>
</header>
<!-- Menu -->
<nav id="menu">
<h2>Menu</h2>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="generic1.html">Activity 1</a></li>
<li><a href="generic2.html">Activity 2</a></li>
<li><a href="generic3.html">Activity 3</a></li>
<li><a href="generic4.html">Activity 4</a></li>
<li><a href="generic5.html">Activity 5</a></li>
</ul>
</nav>
<!-- Main -->
<div id="main">
<div class="inner">
<h1>Activity 3</h1>
<!--<span class="image main"><img src="images/pic13.jpg" alt="" /></span>-->
<span class="image main"><img src="images/ttu/images/pic3.jpg" alt="" /></span>
<br>
<pre> <b>Estimated Time: 15 Minutes</b></pre>
<h2><font size="6">↠</font><font color="blue">1.1</font> Objective</h2>
<p>
<ul>
<li>In this Activity 3, a new APK file is built with modified code and signed with key store file.</li>
</ul>
</p>
<h2><font size="6">↠</font><font color="blue">1.2</font> Description</h2>
<p>With malicious code injected into one of the files of APK in Activity 2, we will re-build the APK file now and sign it with same java key store file generated during Activity1.</p>
<br>
<h2><font size="6">↠</font><font color="blue">1.3</font> Prerequisites</h2>
<p>
For this Activity you need to download, install jdk and set environment variables 'Path' & 'JAVA_HOME' in windows. This is required for running 'jarsigner' command to build the modified APK file. You can watch below YouTube video for reference.
<br>
   <a href="https://www.youtube.com/watch?v=cRgLuNWCq6c">How to Install Java JDK 18 on Windows 10</a>
</p>
<br>
<h2><font size="6">↠</font><font color="blue">1.4</font> Artifacts</h2>
<p>Click below link to download modified APK file<br>
<a href="images/ttu/Activity3/login.apk">login.apk</a>
</p>
<br>
<h2><font size="6">↠</font><font color="blue">1.5</font> Instructions</h2>
<p>
<ul>
<li>Step 1: After updating code of "RestClient.smali" file in Activity 2, we will re-build app-release.apk file in this Activity.</li>
<br>
<li>Step 2: Open command prompt and go to path where you have placed files "app-release.apk" & "apktool_2.0.0rc3.jar" initially.</li>
<br>
<li>Step 3: Execute below command to build app-release folder and create new "app-release.apk" file.</li>
   java -jar apktool_2.0.0rc3.jar b app-release
<br>
<br>
<li>Step 4: Observe that a new file "app-release.apk" is created under sub-folder /app-release/dist/</li>
<br>
<li>Step 5: Since the code has changed, old signature is invalid. So, we need to sign it again.</li>
<br>
<li>Step 6: Open command prompt and execute below command.</li>
   jarsigner -verbose p9cert.jks app-release/dist/app-release.apk proj9key
<br>
   (Note: If you are getting "jarsigner not found" error, it means Java configurations is not set correctly in your windows system.
<br>   Please refer section "Activity 3: Pre-Requisites" for setting environment variables correctly.)
<br>
<br>
<li>Step 7: To save time, modified APK file with name as "login.apk" is provided under "Activity 3: Artifacts" section. Kindly use it for subsequent Activities</li>
</ul>
</p>
<br>
<h2><font size="6">↠</font><font color="blue">1.6</font><font color="orange">★ ★ ★</font> Self-Assessment <font color="orange">★ ★ ★</font> </h2>
<p>Please complete the following self-assessment over Activity 3</p>
<a href="Challenge3.html">Start Assessment</a>
<br>
<h2><font size="6">↠</font><font color="blue">1.7</font><font color="orange"></font> Activity 3 - Feedback <font color="orange"></font> 😍😁😶🙁😞</h2>
<p>Please complete the following survey questions over Activity 3</p>
<a href="https://educttu.az1.qualtrics.com/jfe/form/SV_3NVeF2LJL0FQNls">Start Survey Questions</a>
</div>
</div>
<!-- Footer -->
<footer id="footer">
<div class="inner">
<section>
<h2>Contact Us</h2>
<form method="post" action="https://formspree.io/f/mjvzpjvb">
<div class="fields">
<div class="field half">
<input type="text" name="name" id="name" placeholder="Name" />
</div>
<div class="field half">
<input type="email" name="email" id="email" placeholder="Email" />
</div>
<div class="field">
<textarea name="message" id="message" placeholder="Message"></textarea>
</div>
</div>
<ul class="actions">
<li><input type="submit" value="Send" class="primary" /></li>
</ul>
</form>
</section>
<section>
<h2>Follow</h2>
<ul class="icons">
<li><a href="#" class="icon brands style2 fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="#" class="icon brands style2 fa-facebook-f"><span class="label">Facebook</span></a></li>
<li><a href="#" class="icon brands style2 fa-instagram"><span class="label">Instagram</span></a></li>
<li><a href="#" class="icon brands style2 fa-dribbble"><span class="label">Dribbble</span></a></li>
<li><a href="#" class="icon brands style2 fa-github"><span class="label">GitHub</span></a></li>
<li><a href="#" class="icon brands style2 fa-500px"><span class="label">500px</span></a></li>
<li><a href="#" class="icon solid style2 fa-phone"><span class="label">Phone</span></a></li>
<li><a href="#" class="icon solid style2 fa-envelope"><span class="label">Email</span></a></li>
</ul>
</section>
<section>
<br><br>
<h2>About Us</h2>
<ul style="list-style: none;">
<li><b>Website Ownership and Management</b></li>
<li>Dr. Akbar Namin, Ph.D.</li>
<li>Associate Professor</li>
<li>Department of Computer Science</li>
<li>Texas Tech University</li>
<li>TX - USA</li>
<li>Email: akbar.namin@ttu.edu</li>
</ul>
</section>
<section>
<h2></h2>
<br><br><br>
<ul style="list-style: none;">
<li><b>Website Developer</b></li>
<li>Prathyush Turaga</li>
<li>Research Assistant</li>
<li>Department of Computer Science</li>
<li>Texas Tech University</li>
<li>TX - USA</li>
<li>Email: pturaga@ttu.edu</li>
</ul>
</section>
<ul class="copyright">
<li>© Texas Tech University. All rights reserved</li>
<!--<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>-->
</ul>
</div>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<link rel="stylesheet" href="AIchat.v1.css" type="text/css" media="screen" />
<script type="text/javascript" src="dependencies.v1.js"></script>
<script type="text/javascript" src="AIchat.v1.js"></script>
</body>
</html>