Assembly Primer For Hackers (Part 8) Unconditional Branching

Posted By: SecurityTube_Bot
Posted On: Mon 21 Feb 2011
Views: 14677
Share this video:
Share it on Facebook Share it on Twitter Share it on Reddit Share it on Digg Share it on Stumbleupon
Support SecurityTube:


Description: This is Part 8 of the "Assembly Language Primer for Hackers" video series. Please begin here, by watching Part 1, if you have not already done so. In this video we will look at how to alter the program execution flow using unconditional branching. We will look at how to use the JMP instruction to make an unconditional branching to a new location in the code segment and how to use the CALL statement in conjunction with RET to save the program execution state. We will demonstrate all the concepts using very simple code snippets to aid understanding.

Please download UnconditionalBranching.s to try out the various exercises discussed in this video.

Tags: programming ,

This video is part of the following groups:

1. Assembly Language Megaprimer for Linux ( 11 videos)


Comments (16)

cr1tt3r on Sun 27 Feb 2011

Another great vid, I always thought assembly would be really hard but you break it down and make it so easy to learn! I'm sad I'm almost at the end of this video series!

Vivek-Ramachandran on Sun 27 Feb 2011

@cr1tt3r :) We also have the "Assembly Primer for Hacker Windows Series"
http://www.securitytube.net/groups?operation=view&groupId=6

and the very new "Exploit Programming Megaprimer" which builds on the assembly language you know:

http://www.securitytube.net/groups?operation=view&groupId=7

Check them out when you get time, you may find them interesting.

lnxg33k on Sun 06 Mar 2011

first thanks for the great series
i want to ask why did you use .asciz instead of .ascii ?

paul on Tue 15 Mar 2011

.asciz just adds the \0 null character at the end by default.

melug on Wed 30 Mar 2011

Great video.

paul on Wed 06 Apr 2011

How does the RET return to where the call occurred? Is there some registers that holds a pointer to that location after a CALL occurs?

balder on Wed 18 May 2011

I have to say that i have gon through a lot of written assembly tutorials and have sort of grasped things but i really appreciate the slow pace of these videos it is really helping to fill in the gaps. Thanks

xplt on Fri 08 Jul 2011

As always! Another great movie! Thank you Vivek!

neo on Fri 15 Jul 2011

very informative video on unconditional branching.
thank u vivek.

in0cula on Tue 19 Jul 2011

very good, i think i have to review all the series because the things to remember are a lot, but Vivek your very good teacher, i'm stuck on my pc watching your lessons. thank you

Waffleboy on Tue 19 Jul 2011

I just wanted to thank you so much for making these videos. I have a book on the general security, hacking, etc but was struggling with parts of it. Your videos explain everything extremely clearly and I love the balance you have between the theory and the examples.

mac on Sun 31 Jul 2011

wow!!! your leture's are mag, magg, maggg , magnificent. I love them to all specially the way you teach and your way of working is very very comprehensible ............


thanx

katsumoto on Sun 31 Jul 2011

great video like always , thanks a lot :)

voidexp on Fri 12 Aug 2011

Nice vids! The theory about the stack and how calls work is very useful. Thanks a lot! I'll check out all your vids ;)

Thilee on Thu 01 Dec 2011

Thanks for your great video series. By the by, is that possible to jump backward?

Could you please tell me why doesn't it work out?

code 1
code 2
....
jmp test1
code 15
code 17

ExitMe:
movl $1, %eax
movl $0. %ebx
int $0x80

code 18
.....
Test1:
code 25
code 26
jmp ExitMe

Thilee on Thu 01 Dec 2011

ohhh..Sorry! It is working perfect. That was my mistake. Anyway, thanks Mr.Vivek. I am looking forward more videos.

Login to post a comment