国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫Lab05  InsecureBankv2 01程序
代寫Lab05  InsecureBankv2 01程序

時間:2025-10-22  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


Lab05 
InsecureBankv2 01



Module Code & Title:           
Programme Code & Title:
Instructor:         
Student Name:         
Student Number:


Lab Time: dd/mm/yyyy



PLEASE BE AWARE: Do not try this lab on your personal phone. If a personal Android device is used, make a backup of the data on device.

Note: You need to submit a detailed lab report, with screenshots, to describe what you have done and what you have observed. You also need to provide explanations for the observations that are interesting or surprising. Finally, answer all questions in the lab instructions if there are any.

Task 0, Install drozer
drozer (formerly Mercury) is the leading security testing framework for Android. The website is 
https://github.com/WithSecureLabs/drozer

Option 1, install latest drozer
Follow the instructions, install it with pip
pipx install drozer

Option 2, install drozer 2.4
The latest version of drozer supports python3.x. An older version is for python 2.x. If you only have Python 2.x, please install drozer 2.4. 
Download drozer-2.4.4.win32.msi and save it in the python27 folder. Ignore the warning message. 
Go to Windows Security  Virus & threat protection, and under Virus & threat protection settings select Manage settings. Switch Real-time protection to Off. 
Double click msi to install it. When asking for python version, choose the python27.

There are two options to run drozer with python2 instead of python3:
Option 1, each time before running drozer type (use your own path for python27):
set path=C:\Python27;C:\Python27\Scripts;%path%

option 2, open drozer.bat under the directory C:\Python27\Scripts, replace python.exe to C:\python27\python.exe

Back to the cmd, navigate to C:\Python27\Scripts, type:
drozer
We should see some information. Type:
drozer console connect
We should find an error.
Install libraries.
python -m pip install service_identity

After successfully installing drozer on the PC, install drozer.apk in the Android device.
download drozer.apk from 
https://labs.withsecure.com/tools/drozer
select drozer (Agent .apk only)

Open Android Studio, turn on a device. Drag the apk to the device to install it. Do not use a higher version of Android. Drozer does not support it.

Open the Drozer in the device.

Task 1, install InsecureBankv2 and tools
Step 1, install python 2.7.x.
Download and install it.
Assuming that your Python installation is in C:\Python27\, add this to your PATH: C:\Python27\;C:\Python27\Scripts\

Step 2, install pip if you have not installed it.
In the CMD, try pip
pip -help
If it returns an error, navigate to the python directory, type:
python -m ensurepip --upgrade
run:
python -m pip install protobuf
python -m pip install pyopenssl
python -m pip install twisted

Step 3
InsecureBank is a purposely vulnerable app designed for educational purposes. It has a server and an apk.
https://github.com/dineshshetty/Android-InsecureBankv2
We need to launch the server so that the vulnerable app can connect to it, and we can start reversing.

Download InsecureBankv2.apk.  Install it in virtual device. If it says the SDK version is lower, try this:
.\adb install --bypass-low-target-sdk-block InsecureBankv2.apk
Please use your own path for InsecureBank2.apk here.

Step 4, setup AndroLab server.
The back end for the InsecureBankv2 application is a simple python server running simple Flask and CherryPy web frameworks. The server component can be found in the AndroLabServer folder in the
InsecureBankv2 project source folder.

Download AndroLab source code. Navigate to the AndroLab directory. To set up the AndroLab server, use pip to install the necessary requirements.
C:\Python27\python.exe -m pip install -r requirements.txt

step 5,
Once all the requirements were installed, run the HTTP server on the default port 8888.
C:\Python27\python.exe app.py
If you encounter an “ImportError: No module named wsgiserver”, run
C:\Python27\python.exe -m pip install wsgiserver
If you encounter an “ImportError: No module named wsgiserver” error, change “from web.wsgiserver import CherryPyWSGIServer” to
from cheroot.wsgi import Server as CherryPyWSGIServer

then run again the “app.py” file to start the server.

view the available arguments for the AndroLab server component.
python app.py –help

Step, 6
Drag InsecureBankv2.pak file onto the emulator screen.
Or we use Android Debug Bridge (ADB) to connect to the emulator and install the InsecureBankv2 APK file.
adb install InsecureBankv2.apk
Once successfully installed, the application icon appears on the emulator.

Step 7, 
Once installed, open the app.


There are pre-defined users, login with either of them.
• dinesh/Dinesh@123$ 
• jack/Jack@123$
When the correct set of credentials is entered, the click of the Login button redirects us to the next screen.

Task 2
Login Vulnerabilities: Login Bypass
There are two ways to bypass login. One is using apk tool to find target activity and run it through adb. The other one is using drozer.

Option one: apk + adb
Step 1, reverse engineering the apk file.
Navigate to the apktool and run
apktool d C:\{Your Path}\InsecureBankv2.apk

Step 2, 
Look at the AndroidManifest.xml file. There are four exported Activities.


Find the activity name “PostLogin”. Using ADB, we can call this exported activity.
adb shell am start -n com.android.insecurebankv2/com.android.insecurebankv2.PostLogin

This will bring a new Activity to us that should only be available after logging in successfully, demonstrating that the login can be bypassed entirely.




Option two: drozer
Step 1, 
Run drozer in the device. The Drozer server runs on port 31415 of your device. We need to set up a suitable port forward so that our PC can connect to a TCP socket opened by the Agent inside the emulator. By default, Drozer uses port 31415. Forwarding port 31415 on the host to port 31415 on the device.
adb forward tcp:31415 tcp:31415
then, connect drozer to the device:
.\drozer console connect
This time we should find that drozer is successfully installed and working.


Step 2,
Find package name of the InsecureBankv2 application
dz> run app.package.list -f bank

determine attack surface:
dz> run app.package.attacksurface com.android.insecurebankv2
We will find the following information:

Attack Surface:
  5 activities exported
  1 broadcast receivers exported
  1 content providers exported
  0 services exported
    is debuggable
It enumerates exported activities along with the permissions necessary to invoke them, i.e. activities that can be launched by other processes on Android device. Let’s launch it
dz> run app.activity.info -a com.android.insecurebankv2
We will find:

Package: com.android.insecurebankv2
  com.android.insecurebankv2.LoginActivity
    Permission: null
  com.android.insecurebankv2.PostLogin
    Permission: null
  com.android.insecurebankv2.DoTransfer
    Permission: null
  com.android.insecurebankv2.ViewStatement
    Permission: null
  com.android.insecurebankv2.ChangePassword
    Permission: null
There are 5 exported activities. One can guess that LoginActivity is probably the one launched when the application starts. Here we will launch PostLogin activity to see what will happen.
dz> run app.activity.start --component com.android.insecurebankv2 com.android.insecurebankv2. PostLogin
Questions:
What if we launch ChangePassword? Show your screenshot.
Can an unauthenticated person have access to the device? What can he/she do after that?

If we want to fix this, remove the highlighted line.


Task 3, Hidden Create User Button for Admins
Step 1, find the source code for the “LoginActivity”.


We will find that the login activity has a hidden button. A check is performed to determine if a resource string called “is_admin” is set to “no”. If this is true, then the “setVisibility(8)” method is used to set the button invisible without taking any space for layout purposes. 

Step 2, patch the vulnerability.
Since this is a string resource, the value we need to modify should be located under the “/res/values/” directories in the strings.xml file. Open this file and change the “is_admin” value from “no” to “yes”, then save the changes.


Step 3,
Use apktool again to rebuild the application with the now modified strings.xml file.
apktool b -f -d InsecureBankv2/
We can find the new generated apk in folder dist.

Sign it.
Find the tool zipalign and apksigner, for me they are in folder


uninstall the unaltered version of the application from the emulator before installing the new APK.
# install
adb install button_InsecureBankv2-final.apk
Once successfully installed, open the application and a new button called “Create user” appears.

Step 7,
However, looking at the source code for the “createUser()” method shows that the button does not actually allow us to create a user, so this concludes the vulnerability.


Task 4, Insecure Logging
The “DoLogin” activity produces a debug log message whenever a user attempts to login.

These logs can be dumped using logcat. The command below will show all the log messages for the application while it is running.
adb logcat | grep "$(adb shell ps | grep com.android.insecurebankv2  | awk '{print $2}')"
If we attempt to login while logcat is running, we will see a log message that shows the username and password we used to successfully login.



Examining the code carefully, we find if the username is “devadmin”, the application does not require a password.  

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

掃一掃在手機打開當前頁
  • 上一篇:代寫COM682 Cloud Native Development 程序 Coursework
  • 下一篇:代寫  COMP3771 推薦系統 代寫python System Prototype
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    岛国视频一区免费观看| 久久久久久久久久久综合| 国产精品美女www爽爽爽视频| 欧美日韩精品不卡| 天天综合中文字幕| 一本色道久久综合亚洲二区三区| 国产精品视频永久免费播放| 国产高清精品软男同| 91精品在线播放| 国产免费一区二区三区香蕉精 | 国产精品久久久久高潮| 国产成人精品电影| 91久久国产自产拍夜夜嗨| 国产伦精品一区二区三区| 精品无码av无码免费专区| 免费看又黄又无码的网站| 韩国一区二区av| 国产日韩在线亚洲字幕中文| 国产一区二区在线免费视频| 蜜桃传媒视频麻豆第一区免费观看 | 免费在线观看的毛片| 欧美亚洲视频在线看网址| 欧美 国产 日本| 国产日韩精品在线播放| 国产精品一区二区免费在线观看 | 97国产精品视频| 99久re热视频这里只有精品6| 99国内精品久久久久久久软件| 81精品国产乱码久久久久久| 九色综合婷婷综合| 精品伦精品一区二区三区视频| 亚洲在线不卡| 日韩精品无码一区二区三区| 五月婷婷综合色| 日韩国产精品一区二区| 免费看国产精品一二区视频| 国产免费一区二区三区四在线播放| 精品一区久久| 中文字幕无码精品亚洲资源网久久| 色999日韩自偷自拍美女| 国内免费精品永久在线视频 | 久久久久久久久久久久久国产 | 久久中文字幕视频| 亚洲视频在线二区| 欧美日韩dvd| 91精品国产高清久久久久久久久| 久久香蕉国产线看观看av| 欧美一区二区三区……| 超碰网在线观看| 久久成人人人人精品欧| 欧美日韩一区二| 久久久久久九九| 色综合久久88色综合天天提莫| 欧美在线一区二区三区四| 成人av在线网址| 国产99久久精品一区二区| 国产中文字幕亚洲| 国产精品裸体一区二区三区| 亚洲欧洲国产日韩精品| 国产无限制自拍| 久久综合久中文字幕青草| 欧美 日韩 激情| 国产精品视频一区二区三区经| 视频一区二区三区免费观看| www日韩视频| 亚洲精品一区二| 国产精品99久久久久久人| 水蜜桃亚洲一二三四在线| 超碰97在线播放| 日韩在线xxx| 久久精品久久精品国产大片| 日韩不卡一二区| 日韩中文字幕视频| 区一区二区三区中文字幕| 久久99精品久久久久久青青日本 | 日韩精品第1页| 久久久国产一区二区三区| 国严精品久久久久久亚洲影视 | 久久国产精品精品国产色婷婷| 午夜精品久久久久久久99热浪潮 | 久久免费成人精品视频| 日韩一区二区高清视频| 久久久久久久久久久福利| 黄色大片中文字幕| 亚洲一区二区高清视频| 久久精彩视频| 国产综合香蕉五月婷在线| 中文视频一区视频二区视频三区| 久久精品国产精品亚洲色婷婷| 国产又大又硬又粗| 日韩精品一区二区三区不卡| 中日韩在线视频| 国产精品免费一区豆花| 国产黄色一级网站| av免费观看国产| 国产日韩在线看片| 日本视频一区二区在线观看| 精品国产一区二区三区免费| 国产福利一区视频| 国产日产欧美精品| 欧美成人四级hd版| 国产高潮呻吟久久久| 国产综合久久久久| 日韩av免费看| 国产精品久久久久久久久借妻 | 国产男女免费视频| 日韩视频在线观看视频| 久久久久亚洲精品| 国产精品午夜av在线| 欧美一区国产一区| 欧美精品一区在线播放| 久久久久久国产免费| 高清亚洲成在人网站天堂| 青草青草久热精品视频在线观看| 久久久久成人网| 国产精品美女视频网站| 91精品国产综合久久久久久丝袜| 国产一区二区三区色淫影院| 奇米影视首页 狠狠色丁香婷婷久久综合| 欧美xxxx做受欧美.88| 国产成人精品一区二区| 国产l精品国产亚洲区久久| 国产女人水真多18毛片18精品| 日韩视频在线视频| 日韩在线观看a| 国产精品三区www17con| 九九热只有这里有精品| 欧美成人全部免费| 深夜福利一区二区| 91高潮在线观看| 国产一区二区三区四区五区加勒比| 另类色图亚洲色图| 国产精品高清网站| 国产伦一区二区三区色一情| 91黄在线观看| 国产精品久久久久9999爆乳| 日韩在线观看精品| 欧美高清性xxxxhd| 欧美日韩xxxxx| 国产精品精品视频一区二区三区 | 欧美激情图片区| 久久91精品国产| 最新欧美日韩亚洲| 久久精彩视频| 国产精品国产精品国产专区不卡| 麻豆乱码国产一区二区三区| 成人精品久久av网站| 久久久天堂国产精品女人| 国产激情一区二区三区在线观看| 久久精品国产sm调教网站演员 | 欧美亚洲视频在线观看| 性高潮久久久久久久久| 欧美中文字幕视频在线观看| 蜜桃视频成人在线观看| 99国产盗摄| 国产精品普通话| 亚洲精品乱码视频| 欧美最大成人综合网| 日本一区二区在线免费播放| 欧洲成人在线观看| 成人免费观看毛片| 国产精品视频网| 一区二区三区观看| 黄频视频在线观看| 久久久无码中文字幕久...| 久久成年人免费电影| 欧美资源一区| 91精品国产99久久久久久红楼| 久久精品综合一区| 一区二区三区国产福利| 国产综合色一区二区三区| www国产91| 日韩美女免费观看| 久久久水蜜桃| 国产精品久久色| 欧美一级片在线播放| 91国产中文字幕| 亚洲最大av网| 超碰在线97av| 亚洲一区二区久久久久久| 国产精品直播网红| 一区二区三区四区欧美日韩| 国产一区二区香蕉| 久久久噜久噜久久综合| 日韩av高清| 国产xxxxx在线观看| 日本不卡免费高清视频| 国产精品自拍片| 亚洲欧洲久久| 国产成人激情视频| 亚洲欧洲免费无码| 国产精品18久久久久久麻辣| 日本亚洲导航| 日韩中文字幕第一页| 欧美精品在线一区| 国产精品久久久久久五月尺| 国产区一区二区| 日韩影院一区| 国产精品久久久久久久久久新婚| 国产热re99久久6国产精品|