diff --git a/README.md b/README.md index 330cacd..ddc0177 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ Originally made for Junction Stupidhack 2020; Created by [redsPL](https://sakamo ## Variables that we think are cool! +![](https://f.sakamoto.pl/d6584c01-1c48-42b9-935b-d9a89af4e071file_101.jpg) + - $post_data - array, contains data from urlencoded POSTs - $post_multipart - array, contains URIs to uploaded files from multipart/form-data POSTs - $get_data - array, contains data from GETs diff --git a/config/master.sh b/config/master.sh index 5c40d60..19c2987 100644 --- a/config/master.sh +++ b/config/master.sh @@ -9,20 +9,23 @@ cfg[autoindex]=true cfg[auth_required]=false cfg[auth_realm]="Laura is cute <3" -cfg[ssl]=true +cfg[ssl]=false cfg[ssl_port]=8443 cfg[ssl_cert]='' cfg[ssl_key]='' cfg[extension]='shs' -cfg[extra_headers]='server: HTTP.sh/0.9' +cfg[extra_headers]='server: HTTP.sh/0.91 (devel)' cfg[title]='ddd defies development' -cfg[php_enabled]=true -cfg[python_enabled]=true +cfg[php_enabled]=false +cfg[python_enabled]=false # by default, those logs are placed in the main directory - change it to /var/log/_name_ for production cfg[log_http]='log_http' cfg[log_https]='log_https' cfg[log_misc]='log' + +cfg[proxy]=false +cfg[proxy_url]='http://example.com/' \ No newline at end of file diff --git a/webroot/allegro/index.shs b/webroot/allegro/index.shs deleted file mode 100644 index 0fe519a..0000000 --- a/webroot/allegro/index.shs +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -source templates/head.sh - -echo "
" diff --git a/webroot/allegro/listing.shs b/webroot/allegro/listing.shs deleted file mode 100755 index ce0148b..0000000 --- a/webroot/allegro/listing.shs +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/bash -cat webroot/allegro/listing_top.txt - -query="$(echo "${get_data[q]}" | sed -s "s/ /%20/g;s/+/%20/g")" -query_nice=$(echo ${get_data[q]} | sed -s "s/+/ /g;") -[[ ${get_data[order]} ]] && order=${get_data[order]} || order='p' - -echo "Searching for '$query_nice'" - -IFS=$'\n' -data=$(curl "https://allegro.pl/listing?string=$query&order=$order" | sed -E 's/<\/article>/\n/g' | grep -ohE "allegro.pl/oferta(.*)") - -cost=($(echo "$data" | grep -Eoh "span class=\"[A-Za-z0-9_]{12}\">([0-9]+|[0-9]+ [0-9]+),<\/span>[0-9]+" | sed -E 's/span class=\"[A-Za-z0-9_]{12}\">//g;s///g;s/<\/span>/g')) -img=($(echo "${data}" | sed -E 's/\" [a-z]{3,5}\="/\n/g;s/,/\n/g;s/ [0-9]+w//g;s/" \/>//g' | grep -ohE "[a-z0-9].allegroimg.com/s[0-9]+/[a-z0-9]{6}/[a-z0-9]{28}/(.*)")) -name=($(echo "${data}" | sed -E 's/<\/a>/\n/g' | grep -ohE 'title="">(.*)' | sed -s 's/title="">//g')) -links=($(echo "${data}" | sed -E 's/"(.*)//g')) - -for (( i=0; i<${#img[@]}; i++ )) do - #echo "" - - echo " - -- Korzystanie z serwisu oznacza akceptację regulaminu -
- - - - - - - - - - - - - - -