In this post I will show you how to hardcode your XC IPTV URL to the apk.
Download the Official Dark media 2.1.7 from here https://mega.nz/#!TMgHVSCb!jg5tcXn9-FFg ... jbl5v7f6bI XC Panel 2+ or streaminy
Download the Official Dark media 2.1.8 from here https://mega.nz/#!rFomgAbL!NxQYRgZy4dYM ... _5JkgfqqL0 XC panel 1.6 (1.0.6) only
Decompile the apk (plenty of videos on YouTube) .
Install notepad++ if you dont have it.
Use this site to base64 https://www.base64encode.org/
Follow the instructions below. Its the same process for both versions.
Make php file on your server named darkmedia.php and paste the below snippet
PHP:
Wherever you created the PHP file get the web address to it and add "?d=" to the end of it
ex. the weaddress to the php file http://yourhost.net/darkmedia.php + ?d=
now the full url should be: http://yourhost.net/darkmedia.php?d=
Now base64 the full url you have.
open
\smali\org\dark\dark\LoginActivity.smali
on line 125 :
Paste the full url thats in base64 and paste it into the " "
open
\smali\org\dark\dark\SplashActivity.smali
on line 2001:
Paste the full url thats in base64 and paste it into the " "
**Edit**
To change the package name follow below
In the PHP script above the $pn= "ac5c3f89ae331143eb8a33dc80a6adad" is the MD5 hash of package name org.dark.dark
I wrote a simple php script to hash your new package name
Create file named md5.php and place on host/server- paste the below snippet
Now hash your package name and replace with your hash number in the $pn=" "
HTML:
To change the app name
open res/values/strings.xml and change app_name
then
open smali\org\dark\dark\k.smali
and change line 112 from
Java:
to
Java:
Recompile apk the sign and zipalign and you will have the Dark media apk pointed to your XC URL
Tools:
APKTOOL - https://ibotpeaches.github.io/Apktool/
APK Editor Studio - https://qwertycube.com/apk-editor-studio/
I recommend to decompile with APKTOOL, make changes, recompile with APKTOOL and then open and save the APK with APK Editor Studio
Disclaimer: This was taken from another forum
Download the Official Dark media 2.1.7 from here https://mega.nz/#!TMgHVSCb!jg5tcXn9-FFg ... jbl5v7f6bI XC Panel 2+ or streaminy
Download the Official Dark media 2.1.8 from here https://mega.nz/#!rFomgAbL!NxQYRgZy4dYM ... _5JkgfqqL0 XC panel 1.6 (1.0.6) only
Decompile the apk (plenty of videos on YouTube) .
Install notepad++ if you dont have it.
Use this site to base64 https://www.base64encode.org/
Follow the instructions below. Its the same process for both versions.
Make php file on your server named darkmedia.php and paste the below snippet
PHP:
CODE: SELECT ALL
<?php
if(isset($_GET['d'])){
$d = $_GET['d'];
$pn = "ac5c3f89ae331143eb8a33dc80a6adad"; //Do not change this
if($d == $pn){
echo "put_your_DNS&PORT_here_in_base64";// ex: some.server:8080 <--no http://
}else{
echo "bmljZS50cnkuY29t";//base64 fake one for haters
}
}
?>
ex. the weaddress to the php file http://yourhost.net/darkmedia.php + ?d=
now the full url should be: http://yourhost.net/darkmedia.php?d=
Now base64 the full url you have.
open
\smali\org\dark\dark\LoginActivity.smali
on line 125 :
CODE: SELECT ALL
const-string v3, "aHR0cDovL2RhcmttZWRpYS5vcmcvdXJsLnBocD9kPQ=="
open
\smali\org\dark\dark\SplashActivity.smali
on line 2001:
CODE: SELECT ALL
const-string v3, "aHR0cDovL2RhcmttZWRpYS5vcmcvdXJsLnBocD9kPQ=="
**Edit**
To change the package name follow below
In the PHP script above the $pn= "ac5c3f89ae331143eb8a33dc80a6adad" is the MD5 hash of package name org.dark.dark
I wrote a simple php script to hash your new package name
Create file named md5.php and place on host/server- paste the below snippet
Now hash your package name and replace with your hash number in the $pn=" "
HTML:
CODE: SELECT ALL
<!DOCTYPE html>
<html>
<style>
div {
margin: auto;
width: 50%;
text-align: center;
padding: 40px;
}
textarea {
resize: none;
}
</style>
<head>
<title>Simple String to MD5</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
</head>
<div id="main">
<form method="post" action="">
<h1>Simple String to MD5</h1>
<p>Enter your string in the textarea below.</p>
<textarea name="txtCode" cols="35" rows="5" id="inny"><?=isset($_POST['txtCode']) ? $_POST['txtCode'] : '' ?></textarea>
<br><br>
<button class="submit_button" name="cmdEncode" value="Encode string" />MD5 It</button>
<button class="submit_button" type="button" value="Clear All" onClick="clearContents()">Clear All</button>
<button class="submit_button" type="button" onClick="changeText('copy', 'Copied Output', 'Copy Output')" id="copy" >Copy Output</button>
<br><br>
<textarea cols="35" rows="5" id="output"><?php if (isset($_POST['cmdEncode']) && strlen($_POST['txtCode'])) {
// Encode this string
$txtCode = $_POST['txtCode'];
echo md5($txtCode);
}?></textarea>
</div>
<script>
//Clear All
function clearContents() {
document.getElementById("inny").value = '';
document.getElementById("output").value = '';
}
function changeText(button, text, textToChangeBackTo) {
buttonId = document.getElementById(button);
buttonId.textContent = text;
setTimeout(function() { document.getElementById(button).textContent = textToChangeBackTo; }, 5000);
}
$(function() {
$("#copy").click(function() {
var copyText = document.getElementById("output");
/* Select the text field */
copyText.select();
/* Copy the text inside the text field */
document.execCommand("copy");
});
});
</script>
</html>
open res/values/strings.xml and change app_name
then
open smali\org\dark\dark\k.smali
and change line 112 from
Java:
CODE: SELECT ALL
move-result-object p0
Java:
CODE: SELECT ALL
const-string p0, "DarkMEDIA PRO"
Tools:
APKTOOL - https://ibotpeaches.github.io/Apktool/
APK Editor Studio - https://qwertycube.com/apk-editor-studio/
I recommend to decompile with APKTOOL, make changes, recompile with APKTOOL and then open and save the APK with APK Editor Studio
Disclaimer: This was taken from another forum