🐝
OSCP 2022 Materials
  • General
    • Whoami
    • Resources
    • Frequently Asked Questions
    • Shared Resource
  • Enumeration
    • Foreword
    • FTP
    • SMTP
    • DNS
    • Finger
    • HTTP/ HTTPS
      • Login Attacks
        • PHP Logins
      • XSS
      • LFI ( LFI -> RCE )
      • RFI ( RFI -> RCE )
      • CMS Exploitation
        • Wordpress
        • Magento
        • Bludit
        • Tomcat
        • Drupal
      • PHPMyAdmin
    • Kerberos
    • POP3
    • SMB
    • IMAP
    • SNMP
    • IRC
    • RSync
    • MSSQL
    • NFS
    • REDIS
    • Port Forwarding
  • Linux Post Exploitation
    • Post Exploit Checks
    • Pivoting ( ProxyChains )
  • Windows Post Exploitation
    • Post Exploit Checks
    • Active Directory ( Recon -> PE)
    • Notes
      • Powershell
      • Commands
  • Buffer Overflow
    • Hackthebox
    • TryHackMe
  • Mobile Pentesting
    • Android Pentesting
      • Lab TroubleShoot
      • Root Detection Bypass ( Manual )
      • Physical Device
  • MISC
    • Useful
    • Web
    • Linux
    • Application Specific
    • Programming Notes for Offensive Security
      • Python
    • Forensics
      • Disk Forensics
    • Inspection
    • Troubleshooting
      • Mouse Flickering
Powered by GitBook
On this page
  • Setup
  • Internet Not Working

Was this helpful?

  1. Mobile Pentesting
  2. Android Pentesting

Lab TroubleShoot

PreviousAndroid PentestingNextRoot Detection Bypass ( Manual )

Last updated 2 years ago

Was this helpful?

These are the solutions for the problems that I faced along the way in setting up things and testing them

Setup

  • VirtualBox

  • Gennymotion (Personal Use)

Internet Not Working

  • When linux in the virtual box is configured with NAT adapter, the internet works and the android in genymotion is also pingable

  • But the Android device is in Host Only Adapter with the subnet of 192.168.0.0/16

  • When the Host Only Adapter is included in the kali machine, the internet siezes to work

  • In short: NAT + Host Only Adapter in linux only communicates with the mobile and not with the internet

Solution:

sudo vi /etc/NetworkManager/NetworkManager.conf
# Change => managed=false --> managed=true

sudo vi /etc/network/interfaces
# Add at last
# auto eth0
# iface eth0 inet dhcp

# restart the services
service networking restart

# Checking
ip a | grep inet | grep 24
# 2 IP addresses will be shown                          
https://www.youtube.com/watch?v=HWFOdmuBEIw