[
  {
    "path": "README.md",
    "content": "# sms-scammer [v. 5.0](https://github.com/Sanif007/sms-scammer)\n# Author : [Ninja Hydra ](https://github.com/Sanif007)\nthis tool is not for any revenge purpose. Please use it only for fun! Use wisely!\n\n# unfortunately due to some error this might show some error in few countries recently!  Am trying to use some new ways till then please wait! \n\n**steps to install it in termux/lunix** :\n1. apt install python git -y\n2. git clone https://github.com/Sanif007/sms-scammer\n3. pip install requests\n4. cd sms-scammer\n5. python sms.py\n\nFollow on Instagram - [click here](https://instagram.com/sanif_kumar)\n\nFollow on Twitter - [click here](https://twitter.com/NinjaHydra1)\n\nPlease do msg me on insta/twitter for more inquiry! \n\n# E.164 error :\nYou can solve this error by purchasing api and inserting it in code manually - [click here ](https://textbelt.com/purchase/?generateKey=1)\n\n# Api adding :\nNew feature is added to make adding your purchased api easily.\n"
  },
  {
    "path": "rq.sh",
    "content": "#!/bin/bash\ncommand -v curl > /dev/null 2>&1 || {  echo >&2 \"I require curl but it is not installed. \\n installing it..\"; apt install curl -y; }\ncommand -v python > /dev/null 2>&1 || {  echo >&2 \"I require python but it is not installed. \\n installing it..\"; apt install python -y; }\ncommand -v pip > /dev/null 2>&1 || {  echo >&2 \"I require pip but it is not installed. \\n installing it..\"; curl https:bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py ; }\ncommand -v toilet > /dev/null 2>&1 || {  echo >&2 \"I require toilet package but it is not installed. \\n installing it..\"; apt install toilet -y; }\n"
  },
  {
    "path": "sess.txt",
    "content": "your session details are given below \n"
  },
  {
    "path": "sess_info.py",
    "content": "with open(\"sess.txt\",\"r\") as file :\n   first_line = file.readline()\n   for last_line in file :\n      pass\nprint(\"\\033[94mFirst time used : \\033[0m\"+first_line)\nprint(\"\\033[94mMost recently used : \\033[0m\"+last_line)\n"
  },
  {
    "path": "sms.py",
    "content": "import requests, os, sys, time, datetime\nfrom requests import get\nstarttime = datetime.datetime.now().strftime(\"%X\")\nprint(\"\\033[96mCoded by github.com/Sanif007 \\033[0m \")\nprint(\"\\033[93m Version 5.0 \\033[0m\")\nprint(\"\\033[91m Checking dependencies... \\033[0m\")\ntime.sleep(2)\nos.system(\"bash rq.sh\")\n\ndef menu() :\n    print(\"\\033[91m1. \\033[92mSend anonymous sms\\033[0m\")\n    print(\"\\033[91m2. \\033[92mCheck status of sms\\033[0m\")\n    print(\"\\033[91m3. \\033[92mHelp\\033[0m\")\n    print(\"\\033[91m4. \\033[92mCheck previous history! \\033[0m\")\n    print(\"\\033[91m5. \\033[92mAdd your own API \\033[0m\")\n    print(\"\\033[91m6. \\033[92mExit\\033[0m\")\ndef control() :\n    ctrl = input(\"What you want to do : \")\n    if ctrl == \"1\" :\n        sms()\n    elif ctrl == \"2\" :\n        status()\n    elif ctrl == \"3\" :\n        help()\n    elif ctrl == \"4\" :\n        history()\n    elif ctrl == \"5\" :\n        api = input(\"Add API here - \")\n        if os.path.exists(\"api_lst.txt\") : \n            print(\"previous API File Still exist... \\n removing previous API and adding new one.\")\n        else : \n            os.system(\"touch api_lst.txt\")\n            apiadd = open(\"api_lst.txt\", \"w\")\n            apiadd.write(api)\n            time.sleep(2)\n            apiadd.close()\n            print(\"Done!\")\n    elif ctrl == \"6\" :\n        print(\"thanks for using it.\\nplease stay connected with us. github.com/Sanif007\")\n        exit()\n    else :\n        print(\"\\033[91mInvalid number\\033[0m\")\ndef sms() :\n   phone_no = input(\"enter phone number : \")\n   msg = input(\"message to send : \")\n\n   resp = requests.post('https://textbelt.com/text',{\n\t'phone' : phone_no,\n\t'message' : msg ,\n\t'key' : api\n   })\n   print(resp.text)\n   time = datetime.datetime.now()\n   clock = time.strftime(\"%X\")  \n   date = time.strftime(\"%x\")\n   save = open(\"sess.txt\", \"a\")\n   save.write(f\"\\nip = {ip} : time = {clock} : date = {date} : stats = {resp.text} : phone no.  = {phone_no} \")\ndef history() :\n    if os.path.exists(\"sess.txt\") :\n        with open(\"sess.txt\",\"r\") as file :\n            sessions = file.read().splitlines()\n            ses_numbers = len(sessions)\n            if ses_numbers > 1 :\n                os.system(\"python sess_info.py\")\n                more_details = input(\"Do you wanna see all sessions? (Default : no) : \").lower()\n                if more_details == \"yes\" or more_details == \"y\" :\n                    os.system(\"cat sess.txt\")\n                else :\n                    print(\"Thanks for using sms-scammer, please keep supporting us.\\nGithub : github.com/Sanif007\")\n            elif ses_number == 1: \n                print(file.readline)\n            else :\n                print(\"either file is empty or any error occurred!\")\n    else :\n        print(\"Either you are using this first time or maybe you had deleted history. \")\ndef status() :\n  textID = input(\"Enter textID of sms : \") \n  os.system(f\"curl https://textbelt.com/status/{textID}\")\ndef help() :\n    print(\"please choose your problem from undergiven conditions! \")\n    print(\"A. Can't send sms after one attempt in a to same number!\")\n    print(\"B. Can't send sms due to huge usage of website. \")\n    print(\"C. Can't send more than one sms even to different number. \")\n    print(\"D. Other\")\n    qna = input(\">>> \").lower()\n    if qna == \"a\" :\n        print(\"Bcoz this is just a demo version so it can send only 1 sms in a day to same number however you can send to different number by using vpn.\")\n    elif qna == \"b\" :\n        print(\"sometimes when website is used in large amount then they disable free sms for sometime. Please wait for sometime...\")\n    elif qna == \"c\" :\n        print(\"please check your vpn carefully and use best vpns only. Like nordvpn , protonvpn etc. \")\n    elif qna == \"d\" :\n        print(\"sorry for any problem! Please mail us your problem on hackersacademyofindia@gmail.com or you can mention your problem in github.com/Sanif007\")\n    else :\n        print(\"Invalid option!! \\n exiting.. Sorry..\")\n        exit()\nos.system(\"clear\")\nos.system(\"toilet -f mono12 -F gay Scammer\")\nprint(\"\\033[94m########################## \\033[31mVr. 5.0\\033[0m \\033[94m#########################  \")\nprint(\"\\033[1;96mCoded by github.com/Sanif007 \\033[0m\")\nprint(f\"Program started at : {starttime}\")\nip = get(\"https://api.ipify.org\").text\nip_c = input(\"\\033[95;107mDo you want to see your current ip ? : \\033[0m\").lower()\nif ip_c == \"yes\" or ip_c == \"y\" :\n   print(f\"\\033[1;93mYou are currently using with ip :\\033[0m \\033[91;107m{ip}\\033[0m \")\nelif ip_c == \"no\" or ip_c == \"n\" :\n   print(\"\\033[93;101mi hope you know what you are doing. :) \\033[0m\")\nelse :\n   print(\"invalid option!! type yes or no \")\nmenu()\nif os.path.exists(\"api_lst.txt\") :\n    apifile = open(\"api_lst.txt\", \"r\")\n    api = apifile.readline()\n    print(\"***using pre-existing API***\")\n    print(api)\n    apifile.close()\nelse :\n    api = 'textbelt'\n    print(\"***no Previous API founded using Default API.***\")\n    print(api)\ncontrol()\n\n"
  }
]