-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0x0.sh
More file actions
36 lines (33 loc) · 827 Bytes
/
0x0.sh
File metadata and controls
36 lines (33 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
function 0x0() {
PS3='Select null pointer instance: '
options=("0x0.st - 512MiB" "envs.sh - 512MiB" "ttm.sh - 256MiB" "Quit")
file=($1)
select opt in "${options[@]}"
do
case $opt in
"0x0.st - 512MiB")
url=(https://0x0.st)
break
;;
"envs.sh - 512MiB")
url=(https://envs.sh)
break
;;
"ttm.sh - 256MiB")
url=(https://ttm.sh)
break
;;
"Pixeldrain - 18.63GiB")
url=(https://pixeldrain.com/api/file/)
id_=$(curl -T "$file" $url | jq -r '.id')
printf "https://pixeldrain.com/u/$id_ " | xclip && exit
;;
"Quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done
curl -F"file=@$file" $url | xclip
}