[GUIDE] setup fake captive portal with android hotspot. - Android General

EDIT: This method is outdated, please find android app source in next post
If you want to redirect clients of your android hotspot to custom web page(on connection), then you are on wright thread.
what you are looking for is a captive portal.
Let's make it.
requirements:
Rooted device
Terminal emulator app.play store link
palapa web server app installed. download here
Patience
Installation:
Open palapa web server app and click install.
download captive_portal.zip attached below and extract it to /data folder (use current folder option).
Now open terminal type
Code:
su
chmod -R 777 /data/captive_portal
Then place your html file in /sdcard/pws/www/ and rename it to index.html (you can also use php files instead).
Running:
To start captive portal make sure that your hotspot and data is off.
open terminal emulator and type
Code:
su
cd /data/captive_portal/
./capstart
if you got an error, stop and start again like this
Code:
./capstop
./capstart
now turn on hotspot
voila! youre now hosting a fake captive portal. check it by connecting another device to your hotspot, you should probably see "sign into network." notification
To stop it, type following in terminal
Code:
./capstop

Hi devs,
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
captive portal has got many potential use cases, from spoofing public WiFi splash pages to serving locally stored educational content easily.
Though above method works fine, to make it a bit more easier, we decided to make an app. so, with my inexpert JAVA skills, I made an app.
download it : View attachment mobile-release.apk.
currently, it has very minimal UI and options.
It is working as expected on my rooted Lenovo k8 plus device. But, has some problems on android 9+ devices.
if you got a rooted android device, please install it, use it! and test it!​
So dev,
we need your help in making this app more reliable and feature rich.
any major or minor modifications are welcomed.
​
Edit: Thanks for your support devs. contributions to GitHub repo is on pause, will be resumed soon.

Hi devs,
New alpha Release!
Certainly there are some bugs.
find APK attachment below.
Steps to follow:
Turn on hotspot.
press that solo start button.
Edit: Thanks for your support devs. contributions to GitHub repo is on pause, will be resumed soon.

Hello [email protected]
I've downloaded the latest apk on my rooted google pixel 4 running android 10 and granted it super user access.
when I launch the app and press the start button my hotspot automatically gets turned on all well and dandy. When I try and connect from my iphone I don't get redirected to the default html page.
PS: the hotspot on pixel gets broadcasted from wlan1 not wlan0, so I tried modifying the source code from terminal but had no luck.
Any help would be appreciated

hello, can you send the captive_portal.zip download link, because from the apk I can't use it because my android version is too old

Hi,Can you please send me the captive_portal.zip Thanks

hello , can you send the captive_portal.zip download link. because from the app I can't use it because my android version is old.

Related

[OPEN-SOURCE][APP][Android 2.2+]Root Verifier[Checks Root & Busybox]

Hello everyone,
This is my first app, called "Root Verifier" which simply checks if your android phone has superuser access or not. It requires Android 2.2+ (may work on Eclair but not tested). Changelog is in the second post. Some screenshots:-
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download link - Available on Play Store - https://play.google.com/store/apps/details?id=com.abcdjdj.rootverifier
Source code - https://github.com/abcdjdj/RootVerifier-APP
Please feel free to leave feedback and suggestions. I will try my best to make this app as perfect as possible.
Credits:-
--->pedja1
--->Abhinav2
--->Singh_DD3
--->Noobwithabrickedsgy
--->android_1999
--->My teachers who teach me Java
import java.iForgotYou.*;
Thank you,
abcdjdj
Changelog :-
Code:
V1.2
--->Added Busybox version detection
--->Fixed device detection name on Samsung Galaxy Y
--->Reduced app size
--->Cleaned up some code
V1.1
--->Fixed all layout issues
--->Added proper tablet support
--->Improved Superuser detection
--->Added Busybox detection
--->Added Device name
--->Fully updated UI
V1
--->Initial release
Very very good work! Keep it up man!
Press THANKS if I helped,
Best Regards,
AJ
alokbina is now Abhinav2
Great job! I now know that I am rooted
Sent from my Amazon Kindle Fire using Tapatalk HD
Nice
Good job!
Very usefull app.:good:
Now available on Play store.
Sent from my LT26i using xda app-developers app
Updated to V1.1. Many bugs fixed and improved superuser detection. Added busybox detection and android device model detection.
App is now open source
Source can be found here - https://github.com/abcdjdj/RootVerifier-APP
Open sourcing this is of course much appreciated, but over at F-Droid some concerns have been raised about no license being specified either for the source code or for the artwork resources used. Could you please check out the details at https://f-droid.org/forums/topic/root-verifier/#post-8109 ...?
Just used this today on an Amazon Fire HD 6 tablet and it worked great. Thank you.
It works exactly as expected!
Root Verifier says root permission not granted or Superuser app missing but also says Busybox is installed as is Supersu 2.78-SR1. Interestingly the google play checkers assure me i'm rooted but I cant remove any system apps. The $ sign does change to # in the terminal. Is there a definitive way to check root access? I seem to be kinda rooted which is a bit like being a little bit pregnant. Any help would be greatly appreciated.

[TOOLKIT] ADB Toolkit

I have created this toolkit mainly for personal-use, but I've decided to add more functions and put it here.. The app has a GUI and you don't need to remember ADB commands anymore, to install an APK for example, you just need to select the APK and it'll be installed automatically.
The toolkit has ADB integrated, so you don't need to download the Android SDK, the best part: The tool has only 1.2mb.
For now you can:
- Install/Uninstall an APK
- See the connected devices
- Reboot/Reboot in Bootloader/Reboot in Recovery
- See the Logcat
- Push/Pull
- Screenshot (Android 4.0+)
- Screen Record (Android 4.4+)
- Kill ADB Server
To be added:
- Automatically install ADB Drivers
- Fastboot things (Unlock Bootloader, flash recovery, flash kernel, etc..)
- Reboot into Download Mode
- Bootanimation changer
If you want any other commands, just tell me
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Donations
You can donate using PayPal, you just need to send to [email protected]
(Click here to see a Tutorial)
Or you can donate using bitcoin, you just need to send to 15MiLGJnEVbQDvZUoeYzb3RBtzpzywxTPu
After donating, don't forget to send an e-mail to [email protected] with your Name/XDA Username and value donated to be added to the Credits (On the Toolkit and XDA), in case you want to be added as anonymous, you don't need to send the e-mail.
Thanks for donating
Credits:
No one yet, be the first
Translations
English/Portuguese - Ronaldo Cesar
If you want to translate this toolkit onto your language contact me
Thanks!
tx man it's great
Your tool looks amazing! Is it still working or it requires some updates? Thanks you : )
Adb for honor 7
Hi, is it good for rooting the honor 7? And which button I need to push to do that? I need to unlock the bootloader first.
Thank you in advance
Thanks.
Thanks a lot :victory::victory:
Thank you so much for this!
Can you add App installation location switching option (internal to SD & vice versa)??
No longer works forces you to update, links to a dead site, silly you can't just use it as it and that it forces the update.

[Tool] [Windows] Makes flashing quick and easy!

With Google releasing monthly patches (which I believe is a good thing!), it's become a bit of a chore to install updates, especially so if, like me, you have a modified device stopping you installing OTA updates.
I wanted to do something to make it a bit quicker, so I made Nexus Flash! I guess you can think of it as minimal ADB & Fastboot packaged with a GUI.
I've decided I don't like the GUI layout, and I'm pretty sure most will agree, so I've already started working a new layout, bug fixes, and adding some extra features which I'm sure some may find helpful like an update manager (so you don't have to go to Github every time there's a new version), another example is a way to boot an image file too, for instance, Chainfire's CF-Auto-Root.
Currently, there isn't much validation of user input, so please only use it as intended for now. It shouldn't break your device if you don't use it correctly since ADB has built in measures to validate files to some degree at least.
However, I have to say, this program is provided without ANY warranty or guarantee. Using this program is at your own risk. I have tested this on my own Nexus 5X and it works perfectly.
The source code is released under the GNU GPL (General Public Licence) and can be found on Github.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Prerequisites for Windows:
You'll need the .Net framework 4.5.2 installed (Windows 10 already has this).
Prerequisites for Android device:
Your device must have an unlocked bootloader.
You must have USB debugging enabled.
You'll also need the Android ADB USB drivers installed too.
Guides can be easily found by searching for them, there's plenty of them around!
Links:
Binary - Github releases
Source code - Github
Issues or feature suggestions - please direct them to Github (preferred). Or simply create a comment on this thread.
Release notes
Version 1.0.0
Initial release!
I've had to delay writing the new update for this (because life gets in the way), but I promise I will get an update out ASAP!

[WINDOWS/LINUX/MacOSX][NodeJS] Android Debug Bridge Tool

Hello all!
I am back at it again with a new Android Debug Bridge GUI, now written in NodeJS!
Features:
Install APKs
Custom TWRP integration
Fastboot commands in one click!
Backup device via android or twrp backup methods
build.prop reader (soon to be editor)
Root checker (Soon to be root installer too for LineageOS devices)
Custom Commands
Multi-device support
It has the same basic features that my Older ADBGUI application had but with the added benefit that it will work on Windows, Linux, & Mac! (AndroidSDK needs to be installed on Mac in order to use, Minimal ADB installed on Windows in order to use, and android-tools installed on Linux in order to use)
Some features still do not work, but it is currently work-in-progress. It also can be used as a Kiosk in cell phone repair shops to quickly run diags on Android Devices.
This application is written in NodeJS and is built to run under Windows and Linux however it should (untested) be able to run under Mac as well.
This application should NOT - I REPEAT SHOULD NOT be run on a computer that can be directly accessed outside of the local network.
Downloads:
https://urgero.org/howto/linux/adbwui.md
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Very interesting your project. Good job!!!
FernandoSilva said:
Very interesting your project. Good job!!!
Click to expand...
Click to collapse
Thank you! It's based on my adbgui idea from 2012.
Sent from my Moto G4 Play using XDA Labs
#bump (sorry)
Is this the same project as photo attached??
What do you mean by ""This application should NOT - I REPEAT SHOULD NOT be run on a computer that can be directly accessed outside of the local network."" ???
Why would you not have the computer connected to WIFI? Is this a licencing issue?
I cannot understand why no one adjusts the name slightly when reviving these projects (e.g. adbGUI v2 OR.... adbGUI for MAC, etc).
So Linux only support??
EDIT: Looks like the project is now "ADBWUI" @ https://github.com/mitchellurgero/ADBWUI
flipmode_11 said:
Is this the same project as photo attached??
What do you mean by ""This application should NOT - I REPEAT SHOULD NOT be run on a computer that can be directly accessed outside of the local network."" ???
Why would you not have the computer connected to WIFI? Is this a licencing issue?
I cannot understand why no one adjusts the name slightly when reviving these projects (e.g. adbGUI v2 OR.... adbGUI for MAC, etc).
So Linux only support??
EDIT: Looks like the project is now "ADBWUI" @ https://github.com/mitchellurgero/ADBWUI
Click to expand...
Click to collapse
This project is stale. I wouldn't use it. The warning is there because it runs a webserver without any authentication for the UI. This project runs on NodeJS - so supports any OS that supports node.

How To Guide Linux emulator--Kali Nethunter-- open source for moto g stylus 2021

------------ So I was just messing around on my rooted moto G stylus 2021 (Minsk) and found this pretty cool open source that basically runs a pc type system on the phone I don't know what kind of things you can do on it really maybe you do I don't know but ima just give yall my steps to install it and try it out ------------------
.
.
.
.
.
-1. go to this link and install aurora droid - https://f-droid.org/en/packages/com.aurora.adroid/ -
-2. open the app and look up ' Nethunter ' 'Nethunter terminal ' and install them both
(--- and also look up ' Nethunter Kex ' ---- install that)
-3. open Nethunter and navigate to kali chroot manager and you should see an install chroot or kali chroot tap on that and wait for the installation to complete.
after you should see something like this,
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-4. now go navigate to Kex manager on Nethunter app and toggle localhost only then tap on setup local server it will ask for a password just type one press enter then retype it then it will ask you if you want a view password I just type n and press enter
-5. now select user and toggle (root) OR kali and then START SERVER it will start then after it says server started wait till the phone reboots try not to do anything while u wait it lags your phone HARD but after it reboots unlock your phone like normal and Open the app Nethunter Kex
-6. it will look like this then type your password from before and tap on start.
-7. and there you go now you are running Linux Kali Nethunter on your phone!
I think it's pretty cool myself so let me know what yall think it's been ages since I owned an android that's rooted I've missed out on a lot it looks like hopefully there's more to come for the moto g stylus 2021 after all Also I think the stylus is perfect for this.
developers website,
website - https://www.kali.org/get-kali/#kali-mobile -
{Mod edit}
@footjobs
I've changed the prefix of this thread from "Development" to "How To Guide" as it didn't qualify for the first. Please review the stuck guidances at the top of the forum and do not change the prefix back.
I've removed the reference to Telegram from your above post. Same applies to this post by you.
As an exemption from the last bullet of rule no. 5 of the XDA Forum Rules, we grant only developers the privilege to share references to their social media in their own development threads. These conditions obviously don't apply to your posts or you.
Regards
Oswald Boelcke
Senior Moderator

Categories

Resources