Comments (1)
Maybe that was an issue in year 2017, but currently it's not the case? (Tested at Ubuntu 20.04)
$ echo -e '\n~.' | ssh example.net -- 'dd of=/tmp/test.txt'
0+1 records in
0+1 records out
4 bytes (4 B) copied, 0.000616387 s, 6.5 kB/s
Quote from man page:
If an interactive session is requested ssh by default will only request a pseudo-terminal (pty) for interactive sessions when the client has one. The flags -T and -t can be used to override this behaviour.
If a pseudo-terminal has been allocated the user may use the escape characters noted below.
If no pseudo-terminal has been allocated, the session is transparent and can be used to reliably transfer binary data. On most systems, setting the escape character to βnoneβ will also make the session transparent even if a tty is used.
If you call ssh
with command
argument, it's not an interactive session. Therefore no pseudo-terminal will be allocated.
If you pipe something into ssh
without command
argument, it'll display a warning and skip pseudo-terminal allocation:
$ echo | ssh example.net
Pseudo-terminal will not be allocated because stdin is not a terminal.
[β¦]
So this should be safe at the moment: tar c . | ssh example.net -- 'tar x'
Anyways, it's still a nice idea to add it to the list. π π
from big-list-of-naughty-strings.
Related Issues (20)
- Make the file(s) more structured
- Add <!--<script> to the list of strings
- Add dangerous WiFi SSIDs
- Add η·οΏ½η·η·οΏ½ to the list
- O'[email protected] HOT 2
- Add markdown injection
- Niger, the country. HOT 1
- Add rm -rf / HOT 5
- Comment misidentifies Ε as lowercase
- Question - Naughty Http Endpoints HOT 1
- IDN characters HOT 7
- Underscore-separated digits HOT 2
- XML bomb
- Line 507 HOT 1
- Accident HOT 2
- Is this repo still "alive"? HOT 9
- Add BWTC32Key-generated BOM+CJK test string
- Add CSV excel macro injections
- Add Abugidas and CJK/Emoji variation selectors.
- Test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from big-list-of-naughty-strings.