remote posting to 64d

Posted by beam on Dec. 3, 2007, 4:08 p.m.

here's how to remotely post on your 64d blog. since my blog reader was rendered useless by rss, maybe this will go over a little better

<form method="post" action="post.php">
	<input type="text" name="title" />
	<br />
	<textarea name="entry" rows="5" cols="30"></textarea>
	<br />
	<input type="checkbox" name="show_recent" />
	<br />
	<input type="submit" name="submit" />
</form>

<?php
// force exit when no post data
if (empty($_POST['submit'])) exit;

// your 64digits username and password
$username = "beam";
$password = "its a secret, nob";

// the request url
$request_url = sprintf("<a rel="nofollow" href="http://64digits.com/users/index.php?userid=%s&cmd=insert_blog&id=">http://64digits.com/users/index.php?userid=%s&cmd=insert_blog&id=</a>", urlencode($username));

// post fields are title, entry, and show_recent
$request_data = http_build_query(
	array(
		'title'			=> $_POST['title'],
		'entry'			=> $_POST['entry'],
		'show_recent'	=> $_POST['show_recent']
	)
);

// post to 64digits, ya bitch
$ch = curl_init($request_url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Cookie: 64du=$username ;64dp=$password"));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);

// echo the result
if (stripos($result, "class="ms_aprove_msg_font"") === FALSE)
	echo "Blog entry not successfully posted.";
else
	echo "Blog entry successfully posted.";
?>

that is the bare necessity. the only thing you need to do is fill in your 64d username and password. the only problem is that your password is encoded, so you'll have to go into your cookies to find it. it's under the domain .64digits.com, and the cookie name is 64dp. it'll look like a jumble, but it'll work.

i hope i don't get in trouble for this

Comments

Coyote 16 years, 11 months ago

[18:14:31] <%cakeboy> thanks coyote :)

[18:14:44] <%cakeboy> shadow yoshi is so mean sometimes….

[18:14:49] <+coyote> shadow yoshi 4ever

[18:14:58] <%cakeboy> that guy is the biggest faggot

[18:15:06] <%cakeboy> i don't know how anyone can take him seriously

[18:15:25] <+coyote> i dont know where he comes off trying to make yoshi look serious

[18:16:02] <+Lep> shadow yoshi is obviously retarded

[18:16:05] <%cakeboy> shadow yoshi is very serious

[18:16:12] <+coyote> what the hell is a psm

[18:16:18] <%cakeboy> polystyrene man

[18:16:57] <+coyote> oh

beam 16 years, 11 months ago

addendum:

[08:19] <+workman161> shadow yoshi is a gigantic faggot

beam 16 years, 11 months ago

Quote:

Wow! You're a fucking genious!!!

let's let this one speak for itself

Polystyrene Man 16 years, 11 months ago

Quote:
Do I sense some sarcasm PSM?
I am never sarcastic.

Also:

Quote:
[18:16:12] <+coyote> what the hell is a psm

[18:16:18] <%cakeboy> polystyrene man
Bonus points for spelling my name right!

Cesar 16 years, 11 months ago

^^Sarcasm noed again^^

poultry 16 years, 11 months ago

or in other words "XSS"

twisterghost 16 years, 11 months ago

Twisterghost's Law:

Cake is fucking delicious.

However…that doesn't apply here.

s 16 years, 11 months ago

I think TG's law should apply everywhere

…Or is this nowhere?

Arcalyth 16 years, 11 months ago

the cake is a lie

poultry 16 years, 11 months ago

THE CAKE IS A LIE.

THE CAKE IS A LIE.

THE CAKE IS A LIE.

THE CAKE IS A LIE.

THE CAKE IS A LIE.

THE CAKE IS A LIE.

THE CAKE IS A LIE.

THE CAKE IS A LIE.