From 6b6804d7749e719e149b9dd8eb499aae47934180 Mon Sep 17 00:00:00 2001 From: monaco Date: Sat, 17 Apr 2021 23:25:50 -0700 Subject: Add files via upload --- archive.php | 55 ++++++++++++++++++++++++++++++++++++ index.php | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ lines.png | Bin 0 -> 16556 bytes p/index.txt | 13 +++++++++ style.css | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 242 insertions(+) create mode 100644 archive.php create mode 100644 index.php create mode 100644 lines.png create mode 100644 p/index.txt create mode 100644 style.css diff --git a/archive.php b/archive.php new file mode 100644 index 0000000..92c17f8 --- /dev/null +++ b/archive.php @@ -0,0 +1,55 @@ + +KISSmo Archive + + + + +

Runing KISSmo Paste


+
+"; +system('grep -l ' . escapeshellarg($_POST['query']) . ' *p/*.txt'); +echo "
"; +} +?> +
Paste | Archive
+ +
"; + +$dir_open = opendir('./p/'); + +while(false !== ($filename = readdir($dir_open))){ + if($filename != "." && $filename != ".."){ + $link = " $filename
"; + echo $link; + } +} + +closedir($dir_open); +?> diff --git a/index.php b/index.php new file mode 100644 index 0000000..6b6b62f --- /dev/null +++ b/index.php @@ -0,0 +1,83 @@ + + + + + + + + + + Running under KISSmo Paste +

Runing KISSmo Paste


+
Paste | Archive
+
+ +
+
+ +
+
+
+
Use this paste via terminal examples "echo I was here | nc " or "cat example | nc "

+
KISS (Keep it simple, stupid) style pastebin developed from (monaco) with less than 70 Lines of code!
+
Running KISSmo v.1.0.0 stable > 1.5 KB
+
+Currently archiving: "; +echo $filecount . " paste files
"; +?> + + +"; + echo "You're paste has been successful at a correct time: $koha"; + echo "
"; + echo "Click here to open you're paste ->: $num_str"; + echo "
"; + echo "Or copy you're full url: $sitename/$num_str"; + echo "
"; + echo "
"; + echo "You're paste preview here"; + echo "
"; + echo "
"; + echo "
"; + echo "
"; + } +?> + diff --git a/lines.png b/lines.png new file mode 100644 index 0000000..ffea4e6 Binary files /dev/null and b/lines.png differ diff --git a/p/index.txt b/p/index.txt new file mode 100644 index 0000000..69a03e2 --- /dev/null +++ b/p/index.txt @@ -0,0 +1,13 @@ +Welcome to KISSmo Paste + +You can use it via terminal with Netcat with this command! + +cat file | nc monaco.uk.to 7777 + +or + +echo KISSmo is awesome | nc monaco.uk.to 7777 + +If you wanna use KISSmo web interface you're more than welcome: + +https://monaco.coconut.ircnow.org/test/ diff --git a/style.css b/style.css new file mode 100644 index 0000000..27d60c4 --- /dev/null +++ b/style.css @@ -0,0 +1,91 @@ +/************************************************************ +** style.css 2021 monaco +** Style css for KISSmo Paste +** Copyright monaco@ircnow.org +** Copyright Ircnow +** This file is part of KISSmo Paste. +************************************************************/ + +body { +background: whitesmoke; +font-family: monospace; +} +span.error { +display: block; +padding: 5px; +background: red; +color: white; +} +span.hidden { +visibility: hidden; +padding: 0; +margin: 0; +} +span.success { +display: block; +padding: 5px; +background: green; +color: white; +} + +span.mon { + display: block; + padding: 5px; + background: #3eb93e; + color: white; +} + +span.success.hidden { +visibility: hidden; +padding: 0; +margin: 0; +} +pre.cmdbox { + background: #F5F5F5; + border: 1px solid #AAAAAA; + overflow: auto; + padding: 10px; +} + +input:required, +textarea:required { + border-color: red !important; +} +input:required + label { + color: red; +} + +form div { + padding: 5px; +} +label { + display: block; +} +input + label { + display: inline-block; + margin-right: 10px; +} + +textarea[type=text_box], +textarea { + border: 1px solid #999; + padding: 5px; + width: 100%; +} + +textarea { + background: url(./lines.png); + background-attachment: local; + background-repeat: no-repeat; + padding-left: 35px; + padding-top: 10px; + border-color:#ccc; +} + +div.b { + word-wrap: break-word; +} + +pre { + word-wrap: break-word; +} -- cgit v1.2.3