아무나 다른 게시판가서
글쓰면서 paros나 burpsuite나 fiddler로
글쓰는 게시판이 어딘지 알게됨

get의 파라미터중에
감이 딱 오는게 있을것이다

그걸 조금 수정해준다음

다시 캡처링 조금해주면~






조금씩 정규식이랑 urllib가 익숙해지고 있는 것 같다~



돌리고 쉬고있었는데


^^..~


초기값바꾸고 다시돌렷다


아그리고 정규식 [0-9]{1,5}로 바꿔줬다


두자릿수도 나오더라




잉?

ㅋㅋㅋㅋㅋㅋ


ㅋㅋㅋㅋ

됫당~

'war game > pythonchallenge' 카테고리의 다른 글

pythonchallenge oxygen  (0) 2016.11.06
python challenge 6번 코드~  (0) 2016.10.22
pythonchallenge 5번 풀이!  (0) 2016.10.21
pythonchallenge 3번  (0) 2016.10.21

소스를 보면 엄청 많은 알파벳이있는데


정확하게 양쪽 3개의 대문자에 둘러싸인 소문자들을 찾아야한다




'war game > pythonchallenge' 카테고리의 다른 글

pythonchallenge oxygen  (0) 2016.11.06
python challenge 6번 코드~  (0) 2016.10.22
pythonchallenge 5번 풀이!  (0) 2016.10.21
pythonchallenge 4번~  (0) 2016.10.21


쉽네유


 tail -f /tmp/race2.sh &


현재 백그라운드 작업 중인 목록
jobs

실행중인 프로세스 background전환
bg

백그라운드 -> 포그라운드
fg (%번호)



프로세스 죽이기

kill (%번호)

'시스템 > 리눅스 기본' 카테고리의 다른 글

glibc 소스코드  (0) 2016.12.27
objdump 사용법  (0) 2016.10.18
라이브러리 참조순서  (0) 2016.10.15
알아두면 좋은 명령어 모음  (0) 2016.10.13
gdb layout  (0) 2016.10.13

진짜 강력한 것 같다.

import subprocess


subprocess.popen(argsbufsize=0executable=Nonestdin=Nonestdout=Nonestderr=Nonepreexec_fn=Noneclose_fds=Falseshell=Falsecwd=None,env=Noneuniversal_newlines=Falsestartupinfo=Nonecreationflags=0)


개사기 args에 command가 들어갈 수 있는데 shell=True로 하면 문자열로 전달도 된다고 한다


args는 [argc,argv[0],,,,]이렇게 전달

args ['/bin/sh','-c',args[0],args[1]...] 일케도 가능


나머지 옵션들에 관한 reference

출처는 docs.python.org 이다


bufsize, if given, has the same meaning as the corresponding argument to the built-in open() function: 0 means unbuffered, 1 means line buffered, any other positive value means use a buffer of (approximately) that size. A negative bufsize means to use the system default, which usually means fully buffered. The default value for bufsize is 0 (unbuffered).

Note

 

If you experience performance issues, it is recommended that you try to enable buffering by setting bufsize to either -1 or a large enough positive value (such as 4096).

The executable argument specifies a replacement program to execute. It is very seldom needed. When shell=Falseexecutable replaces the program to execute specified by args. However, the original args is still passed to the program. Most programs treat the program specified by args as the command name, which can then be different from the program actually executed. On Unix, the args name becomes the display name for the executable in utilities such as ps. If shell=True, on Unix the executable argument specifies a replacement shell for the default /bin/sh.

stdinstdout and stderr specify the executed program’s standard input, standard output and standard error file handles, respectively. Valid values are PIPE, an existing file descriptor (a positive integer), an existing file object, and NonePIPE indicates that a new pipe to the child should be created. With the default settings of None, no redirection will occur; the child’s file handles will be inherited from the parent. Additionally, stderr can be STDOUT, which indicates that the stderr data from the child process should be captured into the same file handle as for stdout.

If preexec_fn is set to a callable object, this object will be called in the child process just before the child is executed. (Unix only)

If close_fds is true, all file descriptors except 01 and 2 will be closed before the child process is executed. (Unix only). Or, on Windows, if close_fds is true then no handles will be inherited by the child process. Note that on Windows, you cannot set close_fds to true and also redirect the standard handles by setting stdin,stdout or stderr.

If cwd is not None, the child’s current directory will be changed to cwd before it is executed. Note that this directory is not considered when searching the executable, so you can’t specify the program’s path relative to cwd.

If env is not None, it must be a mapping that defines the environment variables for the new process; these are used instead of inheriting the current process’ environment, which is the default behavior.

Note

 

If specified, env must provide any variables required for the program to execute. On Windows, in order to run a side-by-side assembly the specified envmust include a valid SystemRoot.

If universal_newlines is True, the file objects stdout and stderr are opened as text files in universal newlines mode. Lines may be terminated by any of '\n', the Unix end-of-line convention, '\r', the old Macintosh convention or '\r\n', the Windows convention. All of these external representations are seen as '\n' by the Python program.

Note

 

This feature is only available if Python is built with universal newline support (the default). Also, the newlines attribute of the file objects stdoutstdin andstderr are not updated by the communicate() method.

If given, startupinfo will be a STARTUPINFO object, which is passed to the underlying CreateProcess function. creationflags, if given, can be CREATE_NEW_CONSOLE orCREATE_NEW_PROCESS_GROUP. (Windows only)

'프로그래밍 > python' 카테고리의 다른 글

python 에서 pid 구하기  (0) 2016.11.25
pwntool libc  (0) 2016.11.08

+ Recent posts