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

look out beam, shadow yoshi has 100 more internet friends then you

RUN

AND DONT LOOK BACK

Cesar 16 years, 11 months ago

Wait…

that means…

DELICIOUS IS A LIE!

poultry 16 years, 11 months ago

SHADOW YOSHI EATS COCK

Coyote 16 years, 11 months ago

cock on a platter

beam 16 years, 11 months ago

i think my logic is fine! while i don't have to deal with 64d, a lot of people still do. and rather than force them to go out of their way to see what i'm up to, they can see it as they browse 64d. why would i want to be a jerk and force them to come to my website? instead, i inform two audiences of what i am doing (64d and the people who visit my site)

sy you need to think things through!

also chances are that the people who have you friended are as lame/lamer than you

flashback 16 years, 11 months ago

You realize this could be used to spam the site with blogs, right? Since it doesn't have integrated date control?

poultry 16 years, 11 months ago

FLASHBACK SLICE

shawn 16 years, 11 months ago

SY, sieriously man,

Quote: SY
Wow! You're a fucking genious!!!

Anyone with a knowledge of HTML can do that you idiot.

I'm glad you can't use caps either you dumbshit.

He did nothing before you to insult you or deserve this at all. I dont know why you think you have the right to yell at people when you want but all he did was show us a little code.

So tell me when your periods over.

OL 16 years, 11 months ago

SY, stop being a fucking troll for no reason.

stampede 16 years, 11 months ago

Um… Why do we even have to fight about this? Internets is a serious place.