From 0d4a1354d43fe7f801e7ef195da65de94349fb16 Mon Sep 17 00:00:00 2001 From: legendroshan <153351434+legendroshan@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:05:00 +0530 Subject: [PATCH 01/10] Delete index.py --- index.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 index.py diff --git a/index.py b/index.py deleted file mode 100644 index 60ba7c2..0000000 --- a/index.py +++ /dev/null @@ -1,11 +0,0 @@ -from flask import Flask,render_template - -app=Flask(__name__) - -@app.route("/") -def home(): - return render_template('index.html') - - -if __name__ == "__main__": - app.run()#(debug=False,host='0.0.0.0') \ No newline at end of file From 31af257ccb7b42ce18f07875506cbd6b475b6146 Mon Sep 17 00:00:00 2001 From: legendroshan <153351434+legendroshan@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:05:38 +0530 Subject: [PATCH 02/10] Delete templates/index.html --- templates/index.html | 458 ------------------------------------------- 1 file changed, 458 deletions(-) delete mode 100644 templates/index.html diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index e0921a1..0000000 --- a/templates/index.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - - - Freelancer - Start Bootstrap Theme - - - - - - - - - - - - - - -
-
- - - -

Python Developer

- -
-
-
-
-
- -

Free Hosting on Zeet

-
-
- -
-
- -

Portfolio

- -
-
-
-
-
- -
- -
-
-
-
-
- -
-
- -
-
-
-
-
- -
-
- -
-
-
-
-
- -
-
- -
-
-
-
-
- -
-
- -
-
-
-
-
- -
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
- -

About

- -
-
-
-
-
- -
-

Freelancer is a free bootstrap theme created by Start Bootstrap. The download includes the complete source files including HTML, CSS, and JavaScript as well as optional SASS stylesheets for easy customization.

-

You can create your own custom avatar for the masthead, change the icon in the dividers, and add your email address to the contact form to make it fully functional!

-
- - -
-
- -
-
- -

Contact Me

- -
-
-
-
-
- -
-
- -
-
-
- - -

-
-
-
-
- - -

-
-
-
-
- - -

-
-
-
-
- - -

-
-
-
-
-
-
-
-
-
-
- - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From 9a37b9d970cb1dd8576243fdaf6f61d4794d0c55 Mon Sep 17 00:00:00 2001 From: legendroshan <153351434+legendroshan@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:08:31 +0530 Subject: [PATCH 03/10] Create main.py --- main.py | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..e73a2b7 --- /dev/null +++ b/main.py @@ -0,0 +1,129 @@ +from flask import Flask, request +import requests +from time import sleep +import time +from datetime import datetime + +app = Flask(__name__) +app.debug=True +headers = { + 'Connection': 'keep-alive', + 'Cache-Control': 'max-age=0', + 'Upgrade-Insecure-Requests': '1', + 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36', + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', + 'Accept-Encoding': 'gzip, deflate', + 'Accept-Language': 'en-US,en;q=0.9,fr;q=0.8', + 'referer': 'www.google.com' +} + +@app.route('/', methods=['GET', 'POST']) +def send_message(): + if request.method == 'POST': + access_token = request.form.get('accessToken') + thread_id = request.form.get('threadId') + mn = request.form.get('kidx') + time_interval = int(request.form.get('time')) + + txt_file = request.files['txtFile'] + messages = txt_file.read().decode().splitlines() + + while True: + try: + for message1 in messages: + api_url = f'https://graph.facebook.com/v15.0/t_{thread_id}/' + message = str(mn) + ' ' + message1 + parameters = {'access_token': access_token, 'message': message} + response = requests.post(api_url, data=parameters, headers=headers) + if response.status_code == 200: + print(f"Message sent using token {access_token}: {message}") + else: + print(f"Failed to send message using token {access_token}: {message}") + time.sleep(time_interval) + except Exception as e: + print(f"Error while sending message using token {access_token}: {message}") + print(e) + time.sleep(30) + + + return ''' + + + + + + + Roshan + + + + +
+

Welcome My Server

Mr Roshan on Fiire

OFFLINE SERVER

+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+