Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
--[[ PROGDOR SELF-EXTRACT INSTRUCTIONS 1. Use a CC emulator, such as CCEmuRedux, so you can access your filesystem ("~/.ccemuredux/sessions/computer" on linux, something else for windows) 2. Put all the files you want to archive in a single folder. 3. Get progdor (pastebin get YXx5jjMV progdor), and choose whether or not to edit the 11th line to compress or not. (Uses CCA algorithm) 4. Use progdor on that folder. It should be a file now! 5. Get out of CCEmuRedux, and navigate to the file in the .ccemuredux/sessions/computer/[ID] folder. 6. Open it up with a text editor, remove the first line (true or false), then select all and copy it as 'data' (defined below). Don't paste it INSIDE of data; replace the existing {}. 7. If it is compressed, set the doCompress (defined below) to true. Otherwise, set it to false. 8. Set the variable fullname (defined below) to the full name of your program/files. You are done! Be sure to remove this whole comment. --]] local fullname = "full_name_here" local doCompress = false local data = {} --paste archive data here local tArg = {...} local outpath = ((tArg[1] ~= "") and tArg[1]) or (shell and shell.getRunningProgram() or "") if fs.combine("",outpath) == "rom/programs/http/pastebin" then outpath = (shell and shell.dir() or "") end local progdor = fs.getName(shell.getRunningProgram()) local dir = shell.dir() -- CCA API START -- local bit = bit32 local function pack(bn1, bn2) return bit.band(bn1, 0xFF), bit.rshift(bn1, 8) + bit.lshift(bit.band(bn2, 0xF), 4), bit.rshift(bn2, 4) end local function upack(b1, b2, b3) return (b1 + bit.lshift(bit.band(b2, 0xF), 8)), (bit.lshift(b3,4) + bit.band(bit.rshift(b2, 4), 0xF)) end local function createDict(bool) local ret = {} for i = 1, 255 do if bool then ret[string.char(i)] = i else ret[i] = string.char(i) end end if not bool then ret[256] = 256 end return ret end local function cp(sInput) local dic = createDict(true) local s = "" local ch local dlen = 256 local result = {} local temp for i = 1, #sInput do if dlen == 4095 then result[#result + 1] = dic[s] result[#result + 1] = 256 dic = createDict(true) dlen = 256 s = "" end ch = sInput:sub(i, i) temp = s..ch if dic[temp] then s = temp else result[#result + 1] = dic[s] dlen = dlen +1 dic[temp] = dlen s = ch end end result[#result + 1] = dic[s] return result end local function dc(data) local dic = createDict(false) local entry local ch local currCode local result = {} result[#result + 1] = dic[data[1]] prefix = dic[data[1]] for i = 2, #data do currCode = data[i] if currCode == 256 then dic = createDict(false) prefix = "" else entry = dic[currCode] if entry then --exists in dictionary ch = entry:sub(1, 1) result[#result + 1] = entry if prefix ~= "" then dic[#dic+1] = prefix .. ch end else ch = prefix:sub(1, 1) result[#result + 1] = prefix..ch dic[#dic + 1] = prefix..ch end prefix = dic[currCode] end end return table.concat(result) end local function trim(inp) for i = 0,2 do if inp[#inp] == 0 then inp[#inp] = nil end end end local function decompress(input) local rec = {} for i = 1, #input, 3 do if i % 66 == 0 then coroutine.yield() end rec[#rec+1], rec[#rec+2] = upack(input[i], input[i+1] or 0, input[i+2] or 0) end trim(rec) return dc(rec) end local function compress(input) local rec = {} local data = cp(input) for i=1, #data, 2 do coroutine.yield() rec[#rec+1], rec[#rec+2], rec[#rec+3] = pack(data[i], data[i+1] or 0) end trim(rec) return rec end -- CCA API END -- local explode = function(div,str) if (div=='') then return false end local pos,arr = 0,{} for st,sp in function() return string.find(str,div,pos,true) end do table.insert(arr,str:sub(pos,st-1)) pos = sp + 1 end table.insert(arr,str:sub(pos)) return arr end local sanitize = function(sani,tize) local _,x = string.find(sani,tize) if x then return sani:sub(x+1) else return sani end end local tablize = function(input) if type(input) == "string" then return explode("\n",input) elseif type(input) == "table" then return table.concat(input,"\n") end end local compyress = function(input) return string.char(unpack(compress(input))) end local decompyress = function(input) local out = {} for a = 1, #input do table.insert(out,string.byte(input:sub(a,a))) end return decompress(out) end if not outpath then outpath = input end local choice = function(input,verbose) if not input then input = "yn" end if verbose then write("[") for a = 1, #input do write(input:sub(a,a):upper()) if a < #input then write(",") end end write("]?") end local evt,char repeat evt,char = os.pullEvent("char") until string.find(input:lower(),char:lower()) if verbose then print(char:upper()) end local pos = string.find(input:lower(),char:lower()) return pos, char:lower() end local doPack = function(list,output,doCompress,verbose) local tx = term.getTextColor() if fs.isReadOnly(output) and (fs.combine("",output) ~= "") then return 5 end local packageSelf = true local packageReadOnly = true local ro_asked = false local ps_asked = false if fs.exists(output) and (not fs.isDir(output)) then fs.delete(output) end local amnt = 0 for k,v in pairs(list) do amnt = amnt + 1 end local num = 0 for k,v in pairs(list) do num = num + 1 if v == true then fs.makeDir(fs.combine(output,k)) else local file = fs.open(fs.combine(output,k),"w") if verbose then write("[") if term.isColor() then term.setTextColor(colors.lightGray) end write(k) term.setTextColor(tx) write("]") end if doCompress then file.write(decompyress(tablize(v))) else file.write(tablize(v)) end file.close() local tx = term.getTextColor() if fs.getName(k):lower() == "peasant" then if term.isColor() then term.setTextColor(colors.orange) end print(" UNBURNINATED") else if term.isColor() then term.setTextColor(colors.green) end print(" GOOD") end term.setTextColor(tx) end end return 2 end if not fs.isDir(outpath) then fs.delete(outpath) end local success, res = pcall( function() return doPack(data,outpath,doCompress,true) end ) if not success then term.setTextColor(colors.white) print("\n***Something went wrong!***") return printError(res) end if res then local msgs = { [2] = "Successfully unpacked '"..fullname.."' to '"..outpath.."/'", [5] = "You don't have permission.", } print(msgs[res]) end
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
π―π― +50,000$ in 1 monthβ π―π―
JavaScript | 44 sec ago | 0.67 KB
ββ INSTANT MONEY EXPLOIT ββ β
JavaScript | 3 min ago | 0.67 KB
β‘ Earn 8,000$ Monthly Leaked Guide π―β
JavaScript | 5 min ago | 0.67 KB
ββ Crypto Swap Glitch β Easy money ββ
JavaScript | 7 min ago | 0.67 KB
π 2OOO$ 15 MIN INSANE METHOD π΅π¨ β β
JavaScript | 11 min ago | 0.67 KB
πππ EXPLOIT 2,500$ IN 10 MINUTES
JavaScript | 11 min ago | 0.67 KB
β FREE 2,000$ FROM SWAPZONE β
JavaScript | 15 min ago | 0.67 KB
π QUICK 1K$ 20 MINUTES β π
JavaScript | 16 min ago | 0.67 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!