Follow us on Twitter!
The measure of a mans life is not how well he dies, but how well he lives.
Wednesday, April 23, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 24
Guests Online: 22
Members Online: 2

Registered Members: 82885
Newest Member: ConiBE
Latest Articles
View Thread

HellBound Hackers | Challenges | Basic

Author

basic 6 syntax


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 04-02-11 19:35
Picky one here. I have the 2 file names including their parent directory, and I am familiar with basic bash commands. BUT, I can't seem to get it right. I assume the challenge doesn't want arguments like '-f' for the command to remove the files. I think my problem is probably in chmod. I am using alpha characters and the file to chmod is located in /(dir_name)/logs.txt and /(dir_name)/(other_file_name).php Can someone point me in the right direction please?
Author

RE: basic 6 syntax

j4m32
Member

Your avatar

Posts: 81
Location:
Joined: 01.05.10
Rank:
Newbie
Posted on 04-02-11 20:57
This challenge has tricky syntax no doubt,
it even took me a good 30 minutes to figure out how I did it - forgot to write down my solution...

There is not an easy way to say this, it is all about "spacing" and that initialiser "$"...

Play around with it is all I can say.
I'm fairly sure you know enough about the UNIX commands here, the challenge in itself is strait forward as you say it is just the syntax.

Hope that helps.

Jim,
Author

RE: basic 6 syntax


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 05-02-11 11:56
Got it. Thanks for the input. Turns out that it didn't like the '/' before the directory, so format for the files should be '(dir_name)/logs.txt'
Author

RE: basic 6 syntax

ADIGA
Member



Posts: 57
Location: Jordan - Middle East
Joined: 28.12.07
Rank:
Mad User
Posted on 05-02-11 12:31
txwooley wrote:
Got it. Thanks for the input. Turns out that it didn't like the '/' before the directory, so format for the files should be '(dir_name)/logs.txt'


when using / in the start of the path it will take as in absolute path.

as an example.

lets say your in /home/user1
and you want to read /home/user1/dir2/file1.txt

its either you enter 'cat /home/user1/dir2/file1.txt'
or
'cat dir2/file1.txt'

if you used 'cat /dir2/file1.txt' it will not read the '/home/user1/dir2/file1.txt'
it will ignore you current location and try to open the file 'file1' in dir named 'dir2' at the base of your system.

therefore keep in mind how linux acts with relative and absolute paths when trying to run any command.
adiga_php@hotmail.com adiga.hacker@yahoo.com www.adiga.ws
Author

RE: basic 6 syntax


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 05-02-11 15:10
Great info! I learned something new. Thanks for the shared wisdom.
Author

RE: basic 6 syntax


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 06-03-11 01:05
I am having issues with this. I am familiar with html and not much else.
Author

RE: basic 6 syntax

GTADarkDude
Member



Posts: 142
Location: The Netherlands
Joined: 23.02.08
Rank:
Newbie
Posted on 06-03-11 13:14
erio wrote:
I am having issues with this. I am familiar with html and not much else.
Then the quite obvious advice would be to get familiar with other things, such as *nix commands, as the challenge so kindly suggests. ;-)


...
- - -
Author

RE: basic 6 syntax


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 06-03-11 19:39
correct. and for this challenge, you might want to also look up "chmod" in google as it is mentioned on the challenge.
Author

RE: basic 6 syntax


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-07-11 23:30
I don't mean to thread jack, but I don't want to make another thread for the same challenge.

I had all the syntax correct. I finished this challenge getting the directory name by guessing. There has to be a better way though. I was able to browse the directory after I completed the challenge, but I'm wondering if I didn't miss a step in getting the directory name.

Can anyone point me in the right direction? I don't want the answer, but a general hint so I can figure it out would be appreciated. PM is fine so it doesn't give it away to anyone else. TIA.

Edited by on 07-07-11 23:31
Author

RE: basic 6 syntax

starofale
Member



Posts: 218
Location: England
Joined: 05.12.07
Rank:
Moderate
Posted on 08-07-11 00:10
I'm pretty sure I just guessed the directory name. Also, from the HBH bot:

...try a obvious directory name for the files to be in

Seems like guessing is what you are meant to do.


Try a new search engine
Author

RE: basic 6 syntax


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 09-07-11 02:03
Fair enough. Thanks for the reply.
Author

RE: basic 6 syntax

_nephelim
Member

Your avatar

Posts: 1
Location:
Joined: 27.11.11
Rank:
Guest
Posted on 04-01-12 13:34
I found a beginners guide since I am not familiar with *:nix >> http://vic.gedris.org/Manual-ShellIntro/1.2/ShellIntro.pdf

It said the common place for logs are in the directory "/var"
I am not done this challange yet, but does this help me?

and If so, it takes away your problems for guessing the directory.
Author

RE: basic 6 syntax

Futility
Member



Posts: 725
Location: USA
Joined: 17.12.07
Rank:
God
Posted on 04-01-12 15:22
_nephelim wrote:
It said the common place for logs are in the directory "/var"
I am not done this challange yet, but does this help me?

This may be true, however it's not what you're looking for in this challenge. You're overthinking it. Just a quick "Hmm... I wonder what directory would hold the logs" should get you by quite nicely.

The purpose of this one is more for you to learn some Unix commands than it is finding the files.


i252.photobucket.com/albums/hh11/zanimabean/Zim.png
Futility91@hotmail.com Futility91
Author

RE: help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-04-12 02:04
I think I got the chmod part right and deleting the file right, I think my problem is the directory, is it possible to better hint me towards the directory than the hint that the HBHbot gives
Author

RE: basic 6 syntax

alphausr
Member

Your avatar

Posts: 1
Location:
Joined: 07.01.13
Rank:
Guest
Warn Level: 30
Posted on 09-01-13 18:59
is t****_l***.php generally in the same directory as logs.txt, also is that what its usually called or is it the web developers choice where files like this are stored and named?