Traceback (most recent):File "manage.py", line all, in startup = Importlib.import_module (Edx_args.startup)File "/usr/lib/python2.7/importlib/__init__.py", line Notoginseng, in Import_module__IMPORT__ (name)File "/edx/app/edxapp/edx-platform/cms/startup.py", line 7, Settings. Installed_apps # pylint:disable=w0104File "/edx/app/edxapp/venvs/edxapp/local/lib/python
Use the cpuid Assembly command (machine code: 0fh a2h, if your compiler does not support cpuid command, only emit machine code), this command can be recognized by the following CPU:
More than 486 of Intel CPUs,
CPU above cyrix M1,
CPU above amd am486
(1) obtain the cpu oem string to determine the CPU vendor
Let eax = 0 first, then call cpuid
InEl CPU will return:
EBX: 756e6547h 'genu'EdX: 49656e69h 'inei'ECX: 6c65746eh 'ntel'EBX, EDX, and ECX
important parts abve are:1. The code at 77D55E9D. Which copies the address of the bmp file stringInto ecx.
2. The code at 77D55EA8. This checks if the hinst parameter passedLoadImage is NULL. If we jump to the code at address 77D57C6E becuase of thisLine:
77D55EB0 je _ LoadBmp @ 20 + 21 h (77D57C6Eh); If esi was NULL jumpsTo code at 77D57C6E
This takes us to this assembly:
77D57C6E mov esi, dword ptr [_ hmodUser (77da01_h)]77D57C74 movzx eax, cx77D57C77 xor ebx, ebx77D57C79 sub eax, 7 FDCh77D57
first set breakpointsThen, two times shift+f9.Then, cancel the breakpoint. Alt+f9 and executes to user codeThen step away, and you'll reach Oep.5.1, after loading the program, you will find the first line has an address0040a86d > B8 74de4500 mov eax,qqspirit.0045de742, at the address of the next breakpoint BP 0045de743. Then shift+f9 run, and cancel breakpoint4, we are in the Retn next line set breakpoints, and then shift+f9 Run, and cancel the breakpoint045de74 B8 F9CB45F0 mov eax,f045cbf90045
Linux Kernel Analysis Course summaryName: Wang ZhaoxianStudy No.: 20135114Note: Original works reproduced please specify the source + "Linux kernel analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000First, how the computer works 个人理解:计算机就是通过和用户进行交互,执行用户的指令,这些指令存放在内存中,通过寄存器存储,堆栈变化,来一步步顺序执行。Second, the storage program computer working model1.冯诺依曼体系结构—存储程序计算机 硬件角度(主板):通过cpu中IP寄存器指向一个代码段运行某些指令;寄存区,指向内存的某一块区域(代码段) 程序员角度:将cpu抽象为一个for循环,只是执行下一条指令,从内存中取到下一条指令的内容。内存保存指令和数据,cpu
Introduction
EFS Web server is a software that can manage server files over a Web side, and sending a GET request too long can trigger a buffer overflow vulnerabilityAnalysis Source: https://www.exploit-db.com/exploits/39008/ Experimental Environment
WinXP SP3 Chinese versionEFS Web Server7.2Immunity DebuggerWinDbgIdaMona Vulnerability Analysis
Because the author uses the address of the overlay Seh program in ImageLoad.dll, no ASLR, so the use of more stable, open on the pop-up calculator
We w
other than esp. The scaling factor can be 1, 2, 4, or 8. The offset is an immediate number. For example, [ebp+edx*8+200] is a valid, valid address expression. Of course, in most cases you don't need to be so complicated, the address, scaling factor, and offset do not necessarily appear.
The base unit of memory is bytes (byte). Each byte is 8 bits, so the maximum number of energy-saving expressions per word is 11111111, or 255 of the decimal. In gene
(LOCK_PREFIX "decl (% eax) \ n" \ # as shown here, if count is first subtracted from the thread, SF is not equal to 1 (not equal to negative ), execute it later, that is, obtain the lock. then, if the thread that tries to obtain the lock executes this atomic operation (in the unlocked state), SF equals 1, so that void (*) (atomic_t *) is executed *) type Function to enter the waiting queue. therefore, this locking atomic operation can be completed with a single command. in non-SMP scenarios, a
have been learning about Windows kernel recently, write a blog for memo.The specific process of Windows system call in the Pan teacher's "Windows kernel Principle and implementation" in the 8th chapter has been written very clearly, first read the picture given in the.Take CreateFile as an example, after some parameter checking in Ring3 's CreateFile, the final call is NtCreateFile in Ntdll. There are also zwcreatefile, but their addresses point to the same area, so they are essentially the same
the ELF format is generally divided into the following parts :. text ,. data and. bss, where. text is a read-only code area ,. data is a readable and writable data area, while. bss is a readable and writable data zone without initialization. Code and data zones are collectively called sections in ELF. You can use other standard sections or add custom sections as needed, but at least one ELF executable program should have one. text section. The following is our first assembler, In the ATT assemb
Movl $ sys_write, % eax
Movl st_filedes (% EBP), % EBX
Movl st_write_buffer (% EBP), % ECx
Movl $ record_size, % edX
Int $ linux_syscall
# Note-% eax has the return value, which we will
# Give back to our calling program
Popl % EBX
Movl % EBP, % ESP
Popl % EBP
RET
File write-records.s:
. Include "Linux. s"
. Include "record-def.s"
. Section. Data
# Constant data of the records we want to write
# Each text data item is padded to the proper
# Length
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.