root@kali:~/ohm/code_exec# gdb bypass2 
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from bypass2...done.
(gdb) break bypass2.c :9
Breakpoint 1 at 0x790: file bypass2.c, line 9.
(gdb) run $(perl -e 'print "A"x94;')
Starting program: /root/ohm/code_exec/bypass2 $(perl -e 'print "A"x94;')

Breakpoint 1, check_serial (serial=0x7fffffffe45c 'A' <repeats 94 times>)
    at bypass2.c:9
9	  if (strcmp(serial_buff, "SN123456") == 0) flag = 1;
(gdb) x/32xw $rsp
0x7fffffffdfe0:	0x00000000	0x00000000	0xffffe45c	0x00007fff
0x7fffffffdff0:	0x41414141	0x41414141	0x41414141	0x41414141
0x7fffffffe000:	0x41414141	0x41414141	0x41414141	0x41414141
0x7fffffffe010:	0x41414141	0x41414141	0x41414141	0x41414141
0x7fffffffe020:	0x41414141	0x41414141	0x41414141	0x41414141
0x7fffffffe030:	0x41414141	0x41414141	0x41414141	0x41414141
0x7fffffffe040:	0x41414141	0x41414141	0x41414141	0x00004141
0x7fffffffe050:	0xffffe148	0x00007fff	0x00000000	0x00000002
(gdb) q
A debugging session is active.

	Inferior 1 [process 3403] will be killed.

Quit anyway? (y or n) y
root@kali:~/ohm/code_exec# 
