Sponsored Content
Top Forums Programming GDB - how to find interesting information? Post 302464995 by type8code0 on Thursday 21st of October 2010 11:31:02 AM
Old 10-21-2010
Thanks shamrock for your prompt reply. You can find the challenge at the box below. The objective is to find the username & password. I've manage to find both username & password using strings command but I wanted to learn gdb as well.

Quote:
level1@blackbox:~$ ls -las
total 1184
4 drwxr-x--- 2 level1 level1 4096 Jul 9 2009 .
4 drwxr-xr-x 16 root root 4096 Dec 20 2009 ..
0 lrwxrwxrwx 1 root root 9 Jun 17 2009 .bash_history -> /dev/null
4 -rw-r--r-- 1 level1 level1 567 Dec 29 2007 .bash_profile
4 -rw-r--r-- 1 level1 level1 1834 Jan 28 2008 .bashrc
1168 -rws--xr-x 1 level2 level2 1189337 Jan 12 2008 login2
Quote:
level1@blackbox:~$ file login2
login2: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, statically linked, for GNU/Linux 2.4.1, not stripped
Quote:
level1@blackbox:~$ ./login2
Username:
Password:
Invalid username or password
Quote:
level1@blackbox:~$ gdb ./login2
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
Access to the box
Quote:
ssh -l level1 blackbox.smashthestack.org -p 2225
The password is level1.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Please help me find out system information

I'm just getting started with unix and would like to know 1) how to tell how big the harddrive is 2) how to tell if there are multiple harddrive installed on the machine 3) a relitavely easy way to tell what programs are installed on the machine. I'm using Sun OS 5.6 Thanks (3 Replies)
Discussion started by: ViperD
3 Replies

2. UNIX for Dummies Questions & Answers

How do I find information about the hardware?

Hello I used to Red Hat and the common Linux commands, but now I have to deal with a SCO-Unix (Unix Ware 7). I have to find information about the hardware. What networkcard is installed? What graphiccard is installed? Which SCSI-Adapter and what kind of harddisks? What software is... (3 Replies)
Discussion started by: Fwurm
3 Replies

3. UNIX for Dummies Questions & Answers

How do I find route table information

I am trying to install a new AIX server and I am migrating off of an older AIX server. Does anyone have a quick and easy method for getting the static route information from the old server so I can just maybe copy a file over to the new server ? (1 Reply)
Discussion started by: Docboyeee
1 Replies

4. Programming

strange information about GDB!

(gdb) step 137 param.eps = 1e-3; (gdb) 138 param.p = 0.1; (gdb) 137 param.eps = 1e-3; (gdb) 138 param.p = 0.1; (gdb) 129 param.type = CC; (gdb) 130 param.kernel_type = BF; (gdb) 129 param.type =... (3 Replies)
Discussion started by: new_hand
3 Replies

5. Shell Programming and Scripting

find information about logins

Hi, all I want to make a bash script that print all users from a system using last command. I want to print the number of user's login in the format (descending order): 5 user1 address1 4 user2 address2 I am trying the command last | awk '{print $1 " " $3}' | sort | uniq ... (9 Replies)
Discussion started by: peter20
9 Replies

6. UNIX for Dummies Questions & Answers

Where to find Kernel development Information

Hi, I would like to do some research on the Linux kernel. Where can I find information about the current kernel development, who is working on the kernel. I looked up the change log on the kernels main page, but that doesn't help either. My goal is to find out where the focus of the current... (3 Replies)
Discussion started by: Learn4Life
3 Replies

7. Red Hat

Command to find the harddisk information

I tried to find the harddisk information using the command hdparm -i /dev/sda. But I couldn't get the info. Is there any similar command to find the harddisk serial number. (5 Replies)
Discussion started by: gsiva
5 Replies

8. What is on Your Mind?

Disable More Discussions You Might Find Interesting in Mobile View

Hi, for quite a while this feature "xxx More Discussions You Might Find Interesting" is added below a topic here. For desktop view this is ok. I didn't make use of it so far, but it isn't disturbing me either. In mobile view however it's annoying me, because when I scroll down to the end... (3 Replies)
Discussion started by: stomp
3 Replies
SVN::Web::Blame(3pm)					User Contributed Perl Documentation				      SVN::Web::Blame(3pm)

NAME
SVN::Web::Blame - SVN::Web action to show blame/annotation information SYNOPSIS
In config.yaml actions: ... blame: class: SVN::Web::Blame action_menu: show: - file link_text: (view blame) ... DESCRIPTION
Shows a specific revision of a file in the Subversion repository, with blame/annotation information. OPTIONS
rev The revision of the file to show. Defaults to the repository's youngest revision. If this is not an interesting revision for this file, the repository history is searched to find the youngest interesting revision for this file that is less than "rev". TEMPLATE VARIABLES
at_head A boolean value, indicating whether the user is currently viewing the HEAD of the file in the repository. context Always "file". rev The revision that has been returned. This is not necessarily the same as the "rev" option passed to the action. If the "rev" passed to the action is not interesting (i.e., there were no changes to the file at that revision) then the file's history is searched backwards to find the next oldest interesting revision. youngest_rev The youngest interesting revision of the file. mimetype The file's MIME type, extracted from the file's "svn:mime-type" property. If this is not set then "text/plain" is used. blame_details An array of hashes. Each entry in the array corresponds to a line from the file. Each hash contains the following keys: line_no The line number (starting with 0) in the file. revision The revision in which this line was last changed. author The author of the revision that changed this line date The date on which the line was changed, formatted according to "Time and date formatting" in SVN::Web. line The contents of this line. EXCEPTIONS
None. COPYRIGHT
Copyright 2007 by Nik Clayton "<nik@FreeBSD.org>". This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.14.2 2012-06-11 SVN::Web::Blame(3pm)
All times are GMT -4. The time now is 04:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy