Spaces:
Running
Running
Hashir Kashif
commited on
Commit
·
1dbf826
1
Parent(s):
6ebd98e
editing99999990999asasdasdasdasasdasddasdasdasdasasdasdasdasdasasdasdd
Browse files- app.py +1 -1
- sftp_test.py +21 -18
app.py
CHANGED
@@ -43,7 +43,7 @@ def send_retrieve_cookie_msg(channelid):
|
|
43 |
headers=headers)
|
44 |
time.sleep(10)
|
45 |
os.chdir("./cookies/")
|
46 |
-
if
|
47 |
headers = {'authorization': secret}
|
48 |
r = requests.get(
|
49 |
f' https://discord.com/api/v9/channels/{channelid}/messages?limit=1',
|
|
|
43 |
headers=headers)
|
44 |
time.sleep(10)
|
45 |
os.chdir("./cookies/")
|
46 |
+
if r.status_code != 429 or True:
|
47 |
headers = {'authorization': secret}
|
48 |
r = requests.get(
|
49 |
f' https://discord.com/api/v9/channels/{channelid}/messages?limit=1',
|
sftp_test.py
CHANGED
@@ -1,23 +1,26 @@
|
|
1 |
import paramiko
|
2 |
-
def sftp_connect():
|
3 |
-
# create ssh client
|
4 |
-
ssh_client = paramiko.SSHClient()
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
#
|
17 |
-
ftp,ssh_client = sftp_connect()
|
18 |
-
files = ftp.put("./cookiesLocal.txt","./domains/hashir672.serv00.net/public_html/Membership/1f fg fg .txt")
|
19 |
|
20 |
-
|
21 |
-
#
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
1 |
import paramiko
|
|
|
|
|
|
|
2 |
|
3 |
+
if 429 != 429 or True:
|
4 |
+
print('asd')
|
5 |
+
# def sftp_connect():
|
6 |
+
# # create ssh client
|
7 |
+
# ssh_client = paramiko.SSHClient()
|
8 |
|
9 |
+
# # remote server credentials
|
10 |
+
# host = "s1.serv00.com"
|
11 |
+
# username = "hashir672"
|
12 |
+
# password = "gVlwXbMsxPAA36%!OSIm"
|
13 |
+
# port = 22
|
|
|
|
|
14 |
|
15 |
+
# ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
16 |
+
# ssh_client.connect(hostname=host,port=port,username=username,password=password)
|
17 |
+
# ftp = ssh_client.open_sftp()
|
18 |
+
# return ftp,ssh_client
|
19 |
+
# # files = ftp.listdir()
|
20 |
+
# ftp,ssh_client = sftp_connect()
|
21 |
+
# files = ftp.put("./cookiesLocal.txt","./domains/hashir672.serv00.net/public_html/Membership/1f fg fg .txt")
|
22 |
|
23 |
+
# print("uploaded ",files)
|
24 |
+
# # print('connection established successfully')
|
25 |
+
|
26 |
+
# ssh_client.close()
|