|
ok so im stuck on this problom on hack this site
hack this site said: Sam remains confident that an obscured password file is still the best idea, but he screwed up with the calendar program. Sam has saved the unencrypted password file in /var/www/hackthissite.org/html/missions/basic/8/
However, Sam's young daughter Stephanie has just learned to program in PHP. She's talented for her age, but she knows nothing about security. She recently learned about saving files, and she wrote an script to demonstrate her ability.
ok so i put in code <!--#exec cmd="ls" -->
and it gives me randomly named files in the name area
so i put in the box code <!--#exec cmd="ls webroot/missions/basic/8/" -->
and it gives me
hack this site said: If you are trying to use server side includes to solve the challenge, you are on the right track: but I have limited the commands allowed to ones relevant towards finding the password file for security reasons(because there will always be that one person who decides to execute some rather nasty commands). So please manipulate your code so that it is a little more pertaining to the level.
what does this mean?
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Jan 28 at 18:32 UTC
|
|
|
|
/missions/basic/8/"TheFile".php
never minds i just had to enter that in the nav bar and i gewt the password
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Jan 28 at 19:17 UTC
|
|
|
|
ok so... can some one tell me how programing works, like the code lines you put in sprinkels
and how do you exacute it like in a txt file?
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Jan 28 at 20:17 UTC
|
|
|
|
I'm not sure what you mean cloud...but, I will try to answer your question.
Every program has the same thing in common, it starts the the function (or it could be a sub routine) Main
C# code static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
The is the entry point into the program.
The code Application.Run(new Form1()); is what execute the code. Form1 is my class. the tells it to create a new instance of Form1 (hence the 'new' keyword).
And, that is the basics.
|
|
|
|
≡
|
2010 Jan 28 at 20:39 UTC
— Ed. 2010 Jan 28 at 20:41 UTC
|
|
|
|
thank you i solved it but what i was asking is all the code you do where do you put it?
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Jan 28 at 21:04 UTC
|
|
|
|
In the Form1 Class
Here is an updated version....
code using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace WhiteBird
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Browser());
}
}
}
code using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WhiteBird
{
public partial class Browser : Form
{
public Browser()
{
InitializeComponent();
}
private void Browser_Load(object sender, EventArgs e)
{
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
About aboutForm = new About();
aboutForm.ShowDialog();
}
}
}
|
|
|
|
≡
|
2010 Jan 28 at 21:33 UTC
— Ed. 2010 Jan 28 at 21:33 UTC
|
|
|
Down Rodeo
Cap'n Moth of the Firehouse
2007 Oct 19 • 5486
57,583 ₧
|
Sprinkles, stop giving him bad ideas about what programming is!
|
|
|
|
≡
|
2010 Jan 29 at 00:24 UTC
|
|
|
|
DR, he is a virgin (to programming). He wouldn't know were to start. Hell I am a novice, and I hardly know where to start.
Anyways, Cloud, what kind of programming are you doing? What language are you using?
|
|
|
|
≡
|
2010 Jan 29 at 00:28 UTC
— Ed. 2010 Jan 29 at 00:29 UTC
|
|
|
Down Rodeo
Cap'n Moth of the Firehouse
2007 Oct 19 • 5486
57,583 ₧
|
Hey, I was just being funny. There's something of an old-schooler in me that doesn't like the size of applications nowadays, with all the classes running upwards. Like, when a Java program has a runtime error? Jesus, there are so many classes it runs backwards through, and this is for something command-line. Same idea for C# but in the software for IKEA it's WORSE. Which I didn't think was possible.
|
|
|
|
≡
|
2010 Jan 29 at 00:37 UTC
|
|
|
|
|
|
|
|
≡
|
2010 Jan 29 at 00:51 UTC
|
|
|
|
im not gona start it seames interisting but...
its just that hack-this-site has probloms that needing to be solved but i dont know to ancer them :|
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Jan 29 at 01:03 UTC
|
|
|
|
What the hell! I can't even get past the first test!
|
|
|
|
≡
|
2010 Jan 29 at 01:20 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 2045
|
sprinkles said: What the hell! I can't even get past the first test!
LOL! The first test is soooooo easy man...
Look at the page source xD
|
|
|
|
≡
|
2010 Jan 29 at 01:21 UTC
|
|
|
|
Rockbomb said: sprinkles said: What the hell! I can't even get past the first test!
LOL! The first test is soooooo easy man...
Look at the page source xD
RockBomb, thanks.
74fe3f41
Yeah, I got the second one all by myself.
And, now I am stuck on level 3.
|
|
|
|
≡
|
2010 Jan 29 at 01:29 UTC
— Ed. 2010 Jan 29 at 01:40 UTC
|
|
|
|
:|
http://www.hackthissite.org/user/view/cloudsystem/
Basic: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
Realistic: (1) (2) (3) (4) (5)
Javascript: (1) (2) (3) (4) (5) (7)
Extbasic: (1)
Stego: (1) (2) (3) (4) (5) (6) (7)
thats what i finished >:D
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Jan 29 at 01:42 UTC
— Ed. 2010 Feb 4 at 01:36 UTC
|
|
|
|
the_cloud_system said: :|
http://www.hackthissite.org/user/view/cloudsystem/
Basic: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
Realistic: (1) (2) (3)
Javascript: (1) (2) (3) (4) (5) (7)
Extbasic: (1)
Stego: (1) (2) (3) (4) (5) (6) (7)
thats what i finished >:D
Error!
Bad referrer
Error!
CSRF attack blocked
What!?
|
|
|
|
≡
|
2010 Jan 29 at 01:47 UTC
— Ed. 2010 Jan 29 at 01:49 UTC
|
|
|
|
i gess i cant link to my page...
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Jan 29 at 01:49 UTC
|
|
|
|
Cloud, teach me how to 'hack this site.'
|
|
|
|
≡
|
2010 Jan 29 at 01:51 UTC
|
|
|
|
as long as you tell me that fedex is always wrong and edan will come back
tell me what hellp you need
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Jan 29 at 01:52 UTC
|
|
|
|
|
|
|
|
≡
|
2010 Jan 29 at 01:58 UTC
|
|
|
|
lol i know alot
google is your frend
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Jan 29 at 02:04 UTC
|
|
|
|
Teach me the basics.
|
|
|
|
≡
|
2010 Jan 29 at 02:06 UTC
|
|
|
|
|
|
|
|
≡
|
2010 Jan 29 at 02:08 UTC
|
|
|
|
It's a hash algorithm probably. Brute force it.
|
|
|
|
≡
|
2010 Jan 29 at 02:15 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 2045
|
6 to me was really easy. I'm stuck on basic 9 :/
I think I'm overthinking it, cuz it says its easier than I think, hmmm...
Screw it, imma move on and do some javascript missions.
|
|
|
|
≡
|
2010 Jan 29 at 02:20 UTC
|
|
|
|