Jump to content
UBot Underground

Recommended Posts

He,

 

I'm working on a bot that upload videos to the clipbucket video platform.

Everything works greate, but when i click the brouwse button, a windows popup "open file" comes up.

How can i fill this box with the video path?

 

I have setup a test site http://ebookinghotels.nl/clip/upload#current_file_upload_div

No login is needed.

 

If you can help you can test on this site

 

regards

Link to post
Share on other sites

thats because its a flash object and ubot sees it as an image not a file upload area.

<object style="visibility: visible;" id="file_uploadsUploader" data="http://ebookinghotels.nl/clip/js/uploadify/uploadify.swf" type="application/x-shockwave-flash" height="30" width="120"><param value="high" name="quality"><param value="opaque" name="wmode"><param value="always" name="allowScriptAccess"><param value="uploadifyID=file_uploads&pagepath=/clip/&buttonText=Browse%20videos&script=http://ebookinghotels.nl/clip/actions/file_uploader.php&folder=&width=120&height=30&wmode=opaque&method=POST&queueSizeLimit=999&simUploadLimit=1&fileDesc=Video Files&fileExt=*.wmv;*.avi;*.divx;*.3gp;*.mov;*.mpeg;*.mpg;*.xvid;*.flv;*.asf;*.rm;*.dat;*.mp4;*.jpg&multi=true&auto=true&fileDataName=Filedata&queueID=fileUploadQueue" name="flashvars"></object>

Link to post
Share on other sites

thats because its a flash object and ubot sees it as an image not a file upload area.

<object style="visibility: visible;" id="file_uploadsUploader" data="http://ebookinghotels.nl/clip/js/uploadify/uploadify.swf" type="application/x-shockwave-flash" height="30" width="120"><param value="high" name="quality"><param value="opaque" name="wmode"><param value="always" name="allowScriptAccess"><param value="uploadifyID=file_uploads&pagepath=/clip/&buttonText=Browse%20videos&script=http://ebookinghotels.nl/clip/actions/file_uploader.php&folder=&width=120&height=30&wmode=opaque&method=POST&queueSizeLimit=999&simUploadLimit=1&fileDesc=Video Files&fileExt=*.wmv;*.avi;*.divx;*.3gp;*.mov;*.mpeg;*.mpg;*.xvid;*.flv;*.asf;*.rm;*.dat;*.mp4;*.jpg&multi=true&auto=true&fileDataName=Filedata&queueID=fileUploadQueue" name="flashvars"></object>

 

Is there a way to work around this?

Edited by raptortrex
Link to post
Share on other sites

For now the only work around I see is a prompt to select the file, then automate the rest...

 

Not a very good solution, but that is probably the only way you can semi-automate this for now.

Link to post
Share on other sites

If this is a signal threaded bot I would have a look at ubot version 3.x

Theres a command to set the active window (in a thread)

This is case sensitive command

 

 

These should give you some idea of how it worked, all you need to add is the file name

 

http://ubotstudio.com/forum/index.php?/topic/5407-cant-click-pop-up-dialogue-button-in-wordpress/

 

http://support.ubotstudio.com/index.php?/Knowledgebase/Article/View/63/6/ubot-studio-the-ui-elements-and-the-flow-commands

Link to post
Share on other sites
  • 1 year later...

It could be doable but maybe not simple.

 

You need to manually post data to server similar to how JavaScript does on real upload (since there is no example I'll use one from uploadify page http://www.uploadify.com/demos/ ): 

<script type="text/javascript">
											$(function() {
	$("#file_upload_1").uploadify({
		height        : 30,
		swf           : '/uploadify/uploadify.swf',
		uploader      : '/uploadify/uploadify.php',
		width         : 120
	});
});										</script>

As you can see the data gets posted against uploadify.php, so you need to sniff out that request and send similar request from UBot (POST request).

 

You should know that once you do that file gets uploaded to a temporary folder and some data gets sent back from there server; I use Uploadify on one page and after uploading file I store file name into a hidden field, and I only move the file once the form is submitted, so you may need to properly populate inputs with server response and then submit the form (in case upload site in question does the same).

 

Hope that helps you to get on the right track...

Link to post
Share on other sites

It could be doable but maybe not simple.

 

You need to manually post data to server similar to how JavaScript does on real upload (since there is no example I'll use one from uploadify page http://www.uploadify.com/demos/ ): 

<script type="text/javascript">
											$(function() {
	$("#file_upload_1").uploadify({
		height        : 30,
		swf           : '/uploadify/uploadify.swf',
		uploader      : '/uploadify/uploadify.php',
		width         : 120
	});
});										</script>

As you can see the data gets posted against uploadify.php, so you need to sniff out that request and send similar request from UBot (POST request).

 

You should know that once you do that file gets uploaded to a temporary folder and some data gets sent back from there server; I use Uploadify on one page and after uploading file I store file name into a hidden field, and I only move the file once the form is submitted, so you may need to properly populate inputs with server response and then submit the form (in case upload site in question does the same).

 

Hope that helps you to get on the right track...

 

I have try to sniff it but the parameters can not be found on the page nor referrer page

 

like uploadify.php?preventcache=xxxx

 

this xxx thing can not be empty either

 

please help

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...