A simple service that allows you to run commands on the server using text

Related tags

Miscellaneouspython
Overview

Server Text

A simple flask service that allows you to run commands on the server/computer over sms. Think of it as a shell where you run commands over sms

Watch Demo Video Here

Please note this is an early version of the program We are also aware of various security issues that comes with this program. We would highly recommend not to run this on production servers. You can run this program to experiment locally

Installation

You can view installation demo here Note: I use python version 3.9 but 3.6 is being widely used

  • Before you clone the repo make sure you have python3 and pipenv installed on your machine.You can always verify python by running python3 --version on commandline and if you don't have pipenv installed you can refer to the docs

  • Once you have python and pipenv installed now you can clone the repo git clone https://github.com/mtdevss/server-text.git.

  • Now cd server-text/ and run pipenv shell to activate the virtual environment and pipenv install to install the dependencies.

  • Once you have installed the dependencies before you run the script make sure to populate the script with your email,pas ,number from which you will be sending texts from, and imap server of your email provider

Example

mail = '[email protected]'# Where you will be receiving texts sent from number
pas = '<email_pass>'
number = '+1[number]@SMS_GATEWAY'# from which you will be sending
imap_server = '<your_email_provider_imap>'
  • Now you can start the server by following command python3 script.py

  • Before you view the output makesure to send a command like ls -la from your phone to the email and open localhost:5000 on your browser to see the output of your command.

SMS GATEWAYS

You can find your sms gateway here

  • AT&T: [number]@txt.att.net
  • Sprint: [number]@messaging.sprintpcs.com or [number]@pm.sprint.com
  • T-Mobile: [number]@tmomail.net
  • Verizon: [number]@vtext.com
  • Boost Mobile: [number]@myboostmobile.com
  • Cricket: [number]@sms.mycricket.com
  • Metro PCS: [number]@mymetropcs.com
  • Tracfone: [number]@mmst5.tracfone.com
  • U.S. Cellular: [number]@email.uscc.net
  • Virgin Mobile: [number]@vmobl.com
  • Google Fi: [number]@msg.fi.google.com
  • Ting: [number]@message.ting.com
  • Telus Mobile: [number]@msg.telus.com
  • Viaero: [number]@viaerosms.com

NOTE: Make sure to add +1 before the number.

Contribution

  • This is available under MIT license and contributions are welcomed.
  • Currently its version 1.0 we do plan to improve this further.
  • If you would like to contribute to this feel free to fork and create a PR and we would be happy to merge your contribution.

Note

  • This script was tested using tmobile and googlefi network.
  • If you are using gmail make sure you have less secure apps turned off
  • There's a time delay in the request since it takes around 10 seconds to receive message from phone to email
Owner
MT Devs
A software consultancy that focuses on writing open source software
MT Devs
AutoMetamon: Simple program to play Metamon automatically

AutoMetamon: Simple program to play Metamon automatically

Ngô Văn Tuấn 2 Sep 13, 2022
Python script to preprocess images of all Pokémon to finetune ruDALL-E

ai-generated-pokemon-rudalle Python script to preprocess images of all Pokémon (the "official artwork" of each Pokémon via PokéAPI) into a format such

Max Woolf 132 Dec 11, 2022
Tools for dos (denial-of-service) website / web server

DoS Attack Tools Tools for dos (denial-of-service) website / web server di buat olah NurvySec How to install on debian / ubuntu $ apt update $ apt ins

nurvy 1 Feb 10, 2022
Python 3.9.4 Graphics and Compute Shader Framework and Primitives with no external module dependencies

pyshader Python 3.9.4 Graphics and Compute Shader Framework and Primitives with no external module dependencies Fully programmable shader model (even

Alastair Cota 1 Jan 11, 2022
Arcpy Tool developed for ArcMap 10.x that checks DVOF points against TDS data and creates an output feature class as well as a check database.

DVOF_check_tool Arcpy Tool developed for ArcMap 10.x that checks DVOF points against TDS data and creates an output feature class as well as a check d

3 Apr 18, 2022
TrackGen - The simplest tropical cyclone track map generator

TrackGen - The simplest tropical cyclone track map generator Usage Each line is a point to be plotted on the map Each field gives information about th

TrackGen 6 Jul 20, 2022
A little tool that uses LLVM to extract simple "what does this do" level instruction information from all architectures.

moirai: MOre InstRuctions and Information Backcronym. Anyway, this is a small project to extract useful instruction definitions from LLVM's platform d

2 Jul 30, 2022
Blender 3.1 Alpha (and later) PLY importer that correctly loads point clouds (and all PLY models as point clouds)

import-ply-as-verts Blender 3.1 Alpha (and later) PLY importer that correctly loads point clouds (and all PLY models as point clouds) Latest News Mand

Michael Prostka 82 Dec 20, 2022
Tie together `drf-spectacular` and `djangorestframework-dataclasses` for easy-to-use apis and openapi schemas.

Speccify Tie together drf-spectacular and djangorestframework-dataclasses for easy-to-use apis and openapi schemas. Usage @dataclass class MyQ

Lyst 4 Sep 26, 2022
A MCPI hack with many features.

Morpheus 2.0 A MCPI hack with many features To Use: You will need to install the keyboard, pysimplegui, and MCPI python modules and you will need to e

11 Oct 11, 2022
JD扫码获取Cookie 本地版

JD扫码获取Cookie 本地版 请无视手机上的提示升级京东版本的提示! 下载链接 https://github.com/Zy143L/jd_cookie/releases 使用Python实现 代码很烂 没有做任何异常捕捉 但是能用 请不要将获取到的Cookie发送给任何陌生人 如果打开闪退 请使

Zy143L 420 Dec 11, 2022
Holographic Declarative Memory for Python ACT-R

HDM This is the repository for the Holographic Declarative Memory (HDM) module for Python ACT-R. This repository contains: documentation: a paper, con

Carleton Cognitive Modeling Lab 1 Jan 17, 2022
A Blender addon for VSE that auto-adjusts video strip's length, if speed effect is applied.

Blender VSE Speed Adjust Addon When using Video Sequence Editor in Blender, the speed effect strip doesn't auto-adjusts clip length when changing its

Arpit Srivastava 2 Jan 18, 2022
CaskDB is a disk-based, embedded, persistent, key-value store based on the Riak's bitcask paper, written in Python.

CaskDB - Disk based Log Structured Hash Table Store CaskDB is a disk-based, embedded, persistent, key-value store based on the Riak's bitcask paper, w

886 Dec 27, 2022
ASCII-Wordle - A port of the game Wordle to terminal emulators/CMD

ASCII-Wordle A 'port' of Wordle to text-based interfaces A near-feature complete

32 Jun 11, 2022
A webapp for taking fast notes, designed for business, school, and collaboration with groups.

JOTS Journal of the Session A webapp for taking fast notes, designed for business, school, and collaboration with groups.

Zebadiah S. Taylor 2 Jun 10, 2022
Telegram bot to upload media to telegra.ph

Telegraph @StarkTelegraphBot A star ⭐ from you means a lot to us ! Telegram bot to upload media to telegra.ph Usage Deploy to Heroku Tap on above butt

Stark Bots 24 Dec 29, 2022
Small Arrow Vortex clipboard processing library

Description Small Arrow Vortex clipboard processing library. Install You can install this library from PyPI with pip install av-clipboard-lib or compi

Delta Epsilon 1 Dec 18, 2021
Project Faros is a reference implimentation of Red Hat OpenShift 4 on small footprint, bare-metal clusters.

Project Faros Project Faros is a reference implimentation of Red Hat OpenShift 4 on small footprint, bare-metal clusters. The project includes referen

project: Faros 9 Jul 18, 2022
A maubot plugin to invite users to Matrix rooms according to LDAP groups

LDAP Inviter Bot This is a maubot plugin that invites users to Matrix rooms according to their membership in LDAP groups.

David Mehren 14 Dec 09, 2022