One Minute Man

Discussion of challenges you have already solved
Entropy|Immortal
Posts: 4
Joined: Sun Oct 17, 2010 3:30 pm

Post by Entropy|Immortal »

I put this in my crontab:

Code: Select all

* * * * * lynx -dump http://www.hacker.org/challenge/misc/minuteman.php >> .minuteman
And after letting it run for a while:

Code: Select all

sort .minuteman | uniq
The output consisted of a blank line (apparently lynx always ends it's dumps with a blank line Oo), "back later" and the solution…
My box is up 24/7 anyway so I had no problem with letting the script run all night :twisted:
gsjfoe
Posts: 19
Joined: Sat Nov 27, 2010 9:36 am

umm..

Post by gsjfoe »

maybe i am a lucky man ...i solve this challenge without writing script...i just opened that page yesterday (10:52 AM)..and i surprised the page tell me the answer ..
i'm just lucky... :oops: :oops:
pedromalta
Posts: 22
Joined: Wed Apr 13, 2011 12:00 am
Location: Vila Velha
Contact:

Post by pedromalta »

Created a loop bash script that output the Curl to a file, and since Curl would rewrite the file i then Cat the output and appended it on another file, got a long list like that

<html><body>back later
<html><body>back later
<html><body>back later

with the answer in the middle, could replace the <html><body>back later with a blank space, but i just scroll it down it was a lot longer and very easy to spot....

Code: Select all

#!/bin/bash

while true; 
do 
    clear
	curl http://www.hacker.org/challenge/misc/minuteman.php -o /home/pedromalta/minuteman | cat minuteman >> minuteman2    
    sleep 10
done
sudo apt-get a life
Mokor
Posts: 4
Joined: Tue May 17, 2011 10:51 am
Location: Germany

Post by Mokor »

Did it in Groovy. Getting the text from the Website and comparing it to the previous result.
If there is a difference it is shown on the console. The programm ran for 514minutes :D

Code: Select all

def url = new URL('http://www.hacker.org/challenge/misc/minuteman.php')
def data = url.getText()
def result = data
		
def i = 0;
		
while(result.equals(data)) {
	println i++
	sleep(60000)
	data = url.getText()
	if(!data.equals(result)) {
			println data
	}
}
tolgaulusoy
Posts: 1
Joined: Wed Apr 03, 2013 7:37 pm

iMacro Solution

Post by tolgaulusoy »

i used iMacro with Firefox :

Every 10 Sec* 60*24 mal with play loop

URL GOTO=http://www.hacker.org/challenge/misc/minuteman.php
WAIT SECONDS=10
SAVEAS TYPE=TXT FOLDER=D:\Hacker.org\oneminute FILE=+{{!NOW:yyyyddhhmmss}}

Then ordered by file size

Bingo :D
neochronomo
Posts: 1
Joined: Wed Jul 23, 2014 1:36 am

Post by neochronomo »

I basically did what everyone else did: I wrote a script (php) that checked the page every minute for the content to be different than "back later". Further, I had it send me a text message when this was the case! Finally got the text at 11:52 eastern time and it was very exciting. I wrote the script last night around the same time so I must've JUST missed it. Was getting really worried that something was wrong with my code and that I'd have to test another whole day, but no, it just waited til 8 minutes before midnight to increase the suspense haha.
metamilo
Posts: 3
Joined: Thu Sep 03, 2015 11:07 pm

Post by metamilo »

I ran this little php script on my WAMP using localhost/filename.php in my browser.

Code: Select all

<?php
	$page = file_get_contents("http://www.hacker.org/challenge/misc/minuteman.php?name=metamilo&spw=MY_SPW");
	while (strpos($page,"back later")){
		sleep(55);
		$page = file_get_contents("http://www.hacker.org/challenge/misc/minuteman.php?name=metamilo&spw=MY_SPW");
	}
	echo $page;
?>
It took about 4 hours.
He who throws mud loses ground.
tenx212
Posts: 1
Joined: Wed Sep 30, 2015 5:50 pm

left Ruby running

Post by tenx212 »

It seems php is the most popular language, but I did it in ruby and it worked as well:
#one minute man
def checkPage()
require 'open-uri'
while true
answer = open('http://www.hacker.org/challenge/misc/minuteman.php') {|f| f.read }
if !answer.include? "back later"
return answer
end
sleep 59
end
end
dyarbrough93
Posts: 1
Joined: Tue Jan 31, 2017 8:39 pm

Post by dyarbrough93 »

Since I don't see node on here, here's mine:

Code: Select all

const wget = require('node-wget')

const url = 'http://www.hacker.org/challenge/misc/minuteman.php'

function get() {

    wget({
        url: url
    }, function(err, res, body) {

        if (body !== '<html><body>\nback later') {
            console.log('::::::::::::::ANSWER:::::::::::::::')
            console.log(body)
            console.log(res)
            console.log(':::::::::::::::::::::::::::::::::::')
            process.exit()
        } else setTimeout(get, 50000)

    })

}

get()
elmarko
Posts: 4
Joined: Sat Feb 25, 2017 8:31 pm

Post by elmarko »

One liner:

watch -t -n 20 "curl http://www.hacker.org/challenge/misc/minuteman.php >> output" &

20 secs just so I didn’t miss it

Then ran uniq on the output
Post Reply