eleport 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 856f17eba6c8132a6059cd97cb4b640ba64125c9cef99c73cf8391943c32dea9
|
|
4
|
+
data.tar.gz: 5c01be03a72c5696067bcbb4ca612fff9a5a1c6838d7611439dc820218044799
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: f372a8ceccf2c9b00d78cabd8619bfd60ba2356d21c4af8cffc6db2c669a0f9845d80009b5d86f48a5f6c4c665faa6833de2b7a17767122b7565930265de1593
|
|
7
|
+
data.tar.gz: 674cc649936221102648a9ebc28b00aebc6663426dbd3edb6f01ef113203758eb920eb2e282dee7aa4f69608b475767448e4f7843d2c9469992ae96a495291c0
|
data/1
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
#coding:utf-8
|
|
3
|
+
path, num = ARGV[0..1]
|
|
4
|
+
exit(114514) unless path
|
|
5
|
+
num = 1_000_000 unless num
|
|
6
|
+
|
|
7
|
+
file = File.open(ARGV.first,'rb'){|f|f.read}
|
|
8
|
+
|
|
9
|
+
start, finish, current, counter = 0, file.size, 0, 0
|
|
10
|
+
while start <= [finish, num].max
|
|
11
|
+
current = current + num if current + num <= finish
|
|
12
|
+
current = finish if current + num > finish
|
|
13
|
+
content = file[start..current].split("").map{|c|"%02x"%c.ord}.join
|
|
14
|
+
File.open("#{counter}.part","w"){|f|f.write content}
|
|
15
|
+
start = current+1
|
|
16
|
+
counter += 1
|
|
17
|
+
end
|
data/2
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
#coding:utf-8
|
|
3
|
+
num = ARGV.first
|
|
4
|
+
exit(114514) unless num
|
|
5
|
+
text = File.read("#{num}.part")
|
|
6
|
+
size, current, part = text.size, 0, 8192
|
|
7
|
+
puts "==== #{num} st ===="
|
|
8
|
+
while size > 0
|
|
9
|
+
puts text[current..(current+part-1)]
|
|
10
|
+
size -= part; current += part
|
|
11
|
+
sleep 1
|
|
12
|
+
end
|
|
13
|
+
puts "==== #{num} ed ===="
|
data/3
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
#coding:utf-8
|
|
3
|
+
all = []
|
|
4
|
+
Dir["*.txt"].each do|path|
|
|
5
|
+
lines = File.read(path).split("\n")
|
|
6
|
+
content = []; start_flag = false; idx = 0
|
|
7
|
+
lines.each do|line|
|
|
8
|
+
break if line.include?('====') && line.include?('ed')
|
|
9
|
+
if start_flag
|
|
10
|
+
content << line
|
|
11
|
+
next
|
|
12
|
+
end
|
|
13
|
+
if line.include?('====') && line.include?('st')
|
|
14
|
+
start_flag = true
|
|
15
|
+
idx = line.split('====').last.split('st').first.to_i
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
p [path, idx, content.size, lines.size]
|
|
19
|
+
all[idx] = content.join().split("").each_slice(2).map{|pr|eval("0x#{pr.join}").chr}.join
|
|
20
|
+
end
|
|
21
|
+
File.open("all.tar.gz",'wb'){|f|f.write all.join}
|
metadata
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: eleport
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.2.3
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Matt
|
|
8
|
+
bindir: "."
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: eleport is a coding tool for low-speed shell proxy
|
|
13
|
+
email:
|
|
14
|
+
- matthrewchains@gmail.com
|
|
15
|
+
executables:
|
|
16
|
+
- '1'
|
|
17
|
+
- '2'
|
|
18
|
+
- '3'
|
|
19
|
+
extensions: []
|
|
20
|
+
extra_rdoc_files: []
|
|
21
|
+
files:
|
|
22
|
+
- "./1"
|
|
23
|
+
- "./2"
|
|
24
|
+
- "./3"
|
|
25
|
+
homepage: http://127.0.0.1
|
|
26
|
+
licenses: []
|
|
27
|
+
metadata: {}
|
|
28
|
+
rdoc_options: []
|
|
29
|
+
require_paths:
|
|
30
|
+
- "."
|
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '0'
|
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
requirements: []
|
|
42
|
+
rubygems_version: 3.6.9
|
|
43
|
+
specification_version: 4
|
|
44
|
+
summary: leak-tool
|
|
45
|
+
test_files: []
|