rubypwn 0.0.5 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 911faba6711736b3d858375a05a69b6e75f27790
4
- data.tar.gz: 42512731e0e814a72710c67dcb32751c067ff602
3
+ metadata.gz: c971c49d84a195546eef55c5d6ac4f3ee330e144
4
+ data.tar.gz: 8285028c5c3d82b5d80226b5ce6dc004dacb8640
5
5
  SHA512:
6
- metadata.gz: 2a0ad7d5c746f713d9bc5aa90547205226561bf41250cca4f69175bd46b6b638877c5bafdb2624616731ecda95c1d07bd51fde561f4b95c9cd5c8d8e5c899bd0
7
- data.tar.gz: 381b1cab28b28d4de7b66a4db5e22b0b47608fe907b2db2ce046b8e7b868cae51372a57abaa2f7413d795e43b84247b7453d2d4ab67d12d28360362371561c5f
6
+ metadata.gz: 8e07081584165b4975eeb3b3d0a2c4cbf40bc18f9e2764c849d5c6b7553650be7299cb0235966cc0591b8dfd1e9032a54b4d8085d87da14d685dbd7404bc6cc1
7
+ data.tar.gz: 3aa45a8112a9f59c737d90279f8ea4bfda1549f1c3271eeb957bb37e1b57a32c676154a5010cd0ade1ec4bf21db41887ab9b0d610a9cf2e3f848ec3e16e62f0a
@@ -0,0 +1,24 @@
1
+ # rubypwn
2
+ Ruby - pwn tools
3
+
4
+ ### How to install
5
+
6
+ ```
7
+ $ gem install rubypwn
8
+
9
+ $ irb
10
+ 2.2.2 :001 > require 'rubypwn'
11
+ => true
12
+ 2.2.2 :002 > e = Exec.new "ls -la"
13
+ => #<Exec:0x007fdf32e6f320>
14
+ 2.2.2 :003 > e.gets
15
+ total 16
16
+ => "total 16\n"
17
+ 2.2.2 :004 > Asm.compile("mov eax, 1")
18
+ => "b801000000"
19
+ 2.2.2 :005 >
20
+ ```
21
+
22
+ ### Documentation
23
+
24
+ https://rubypwn.readthedocs.org/en/latest/
@@ -0,0 +1 @@
1
+ build
@@ -0,0 +1,192 @@
1
+ # Makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line.
5
+ SPHINXOPTS =
6
+ SPHINXBUILD = sphinx-build
7
+ PAPER =
8
+ BUILDDIR = build
9
+
10
+ # User-friendly check for sphinx-build
11
+ ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12
+ $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13
+ endif
14
+
15
+ # Internal variables.
16
+ PAPEROPT_a4 = -D latex_paper_size=a4
17
+ PAPEROPT_letter = -D latex_paper_size=letter
18
+ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
19
+ # the i18n builder cannot share the environment and doctrees with the others
20
+ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
21
+
22
+ .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
23
+
24
+ help:
25
+ @echo "Please use \`make <target>' where <target> is one of"
26
+ @echo " html to make standalone HTML files"
27
+ @echo " dirhtml to make HTML files named index.html in directories"
28
+ @echo " singlehtml to make a single large HTML file"
29
+ @echo " pickle to make pickle files"
30
+ @echo " json to make JSON files"
31
+ @echo " htmlhelp to make HTML files and a HTML help project"
32
+ @echo " qthelp to make HTML files and a qthelp project"
33
+ @echo " applehelp to make an Apple Help Book"
34
+ @echo " devhelp to make HTML files and a Devhelp project"
35
+ @echo " epub to make an epub"
36
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
37
+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
38
+ @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
39
+ @echo " text to make text files"
40
+ @echo " man to make manual pages"
41
+ @echo " texinfo to make Texinfo files"
42
+ @echo " info to make Texinfo files and run them through makeinfo"
43
+ @echo " gettext to make PO message catalogs"
44
+ @echo " changes to make an overview of all changed/added/deprecated items"
45
+ @echo " xml to make Docutils-native XML files"
46
+ @echo " pseudoxml to make pseudoxml-XML files for display purposes"
47
+ @echo " linkcheck to check all external links for integrity"
48
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
49
+ @echo " coverage to run coverage check of the documentation (if enabled)"
50
+
51
+ clean:
52
+ rm -rf $(BUILDDIR)/*
53
+
54
+ html:
55
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
56
+ @echo
57
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
58
+
59
+ dirhtml:
60
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
61
+ @echo
62
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
63
+
64
+ singlehtml:
65
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
66
+ @echo
67
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
68
+
69
+ pickle:
70
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
71
+ @echo
72
+ @echo "Build finished; now you can process the pickle files."
73
+
74
+ json:
75
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
76
+ @echo
77
+ @echo "Build finished; now you can process the JSON files."
78
+
79
+ htmlhelp:
80
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
81
+ @echo
82
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
83
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
84
+
85
+ qthelp:
86
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
87
+ @echo
88
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
89
+ ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
90
+ @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/rubypwn.qhcp"
91
+ @echo "To view the help file:"
92
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/rubypwn.qhc"
93
+
94
+ applehelp:
95
+ $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
96
+ @echo
97
+ @echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
98
+ @echo "N.B. You won't be able to view it unless you put it in" \
99
+ "~/Library/Documentation/Help or install it in your application" \
100
+ "bundle."
101
+
102
+ devhelp:
103
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
104
+ @echo
105
+ @echo "Build finished."
106
+ @echo "To view the help file:"
107
+ @echo "# mkdir -p $$HOME/.local/share/devhelp/rubypwn"
108
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/rubypwn"
109
+ @echo "# devhelp"
110
+
111
+ epub:
112
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
113
+ @echo
114
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
115
+
116
+ latex:
117
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
118
+ @echo
119
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
120
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
121
+ "(use \`make latexpdf' here to do that automatically)."
122
+
123
+ latexpdf:
124
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
125
+ @echo "Running LaTeX files through pdflatex..."
126
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf
127
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
128
+
129
+ latexpdfja:
130
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
131
+ @echo "Running LaTeX files through platex and dvipdfmx..."
132
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
133
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
134
+
135
+ text:
136
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
137
+ @echo
138
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
139
+
140
+ man:
141
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
142
+ @echo
143
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
144
+
145
+ texinfo:
146
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
147
+ @echo
148
+ @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
149
+ @echo "Run \`make' in that directory to run these through makeinfo" \
150
+ "(use \`make info' here to do that automatically)."
151
+
152
+ info:
153
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
154
+ @echo "Running Texinfo files through makeinfo..."
155
+ make -C $(BUILDDIR)/texinfo info
156
+ @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
157
+
158
+ gettext:
159
+ $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
160
+ @echo
161
+ @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
162
+
163
+ changes:
164
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
165
+ @echo
166
+ @echo "The overview file is in $(BUILDDIR)/changes."
167
+
168
+ linkcheck:
169
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
170
+ @echo
171
+ @echo "Link check complete; look for any errors in the above output " \
172
+ "or in $(BUILDDIR)/linkcheck/output.txt."
173
+
174
+ doctest:
175
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
176
+ @echo "Testing of doctests in the sources finished, look at the " \
177
+ "results in $(BUILDDIR)/doctest/output.txt."
178
+
179
+ coverage:
180
+ $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
181
+ @echo "Testing of coverage in the sources finished, look at the " \
182
+ "results in $(BUILDDIR)/coverage/python.txt."
183
+
184
+ xml:
185
+ $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
186
+ @echo
187
+ @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
188
+
189
+ pseudoxml:
190
+ $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
191
+ @echo
192
+ @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
@@ -0,0 +1,6 @@
1
+ About rubypwn
2
+ ====================================
3
+
4
+ A simple library for CTF pwning challegnges.
5
+
6
+ Like Python's pwntools, it's used to help you write exploit quickly.
@@ -0,0 +1,12 @@
1
+ class Asm
2
+ ====================================
3
+
4
+ Used to compile assembly code ::
5
+
6
+ 2.2.2 :002 > Asm.compile("mov eax, 1")
7
+ => "b801000000"
8
+ 2.2.2 :003 > Asm.compile("mov rax, 1", "amd64", "c")
9
+ => "\\x48\\xc7\\xc0\\x01\\x00\\x00\\x00"
10
+ 2.2.2 :004 > Asm.compile("mov r15, r14", "arm", "binary")
11
+ => "\x0E\xF0\xA0\xE1"
12
+
@@ -0,0 +1,45 @@
1
+ Useful Function
2
+ ====================================
3
+
4
+ * **def i64()** ::
5
+
6
+ 2.2.2 :004 > a = "\x30\x00\x00\x00"
7
+ => "0\u0000\u0000\u0000"
8
+ 2.2.2 :005 > s32 a
9
+ => 48
10
+
11
+
12
+ * **def i32()**
13
+ * **def i16()**
14
+ * **def s64()**
15
+ * **def s32()** ::
16
+
17
+ 2.2.2 :004 > a = "\x30\x00\x00\x00"
18
+ => "0\u0000\u0000\u0000"
19
+ 2.2.2 :005 > s32 a
20
+ => 48
21
+
22
+
23
+ * **def s16()**
24
+ * **def c()** ::
25
+
26
+ 2.2.2 :004 > a = 3
27
+ => 3
28
+ 2.2.2 :005 > c a
29
+ => "\x03"
30
+
31
+
32
+ * **def hex()** ::
33
+
34
+ 2.2.2 :002 > a = "test"
35
+ => "test"
36
+ 2.2.2 :003 > hex a
37
+ => "74657374"
38
+
39
+
40
+ * **def nop()** ::
41
+
42
+ 2.2.2 :002 > nop
43
+ => "\x90"
44
+
45
+
@@ -0,0 +1,289 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # rubypwn documentation build configuration file, created by
4
+ # sphinx-quickstart on Thu Aug 27 09:38:53 2015.
5
+ #
6
+ # This file is execfile()d with the current directory set to its
7
+ # containing dir.
8
+ #
9
+ # Note that not all possible configuration values are present in this
10
+ # autogenerated file.
11
+ #
12
+ # All configuration values have a default; values that are commented out
13
+ # serve to show the default.
14
+
15
+ import sys
16
+ import os
17
+ import shlex
18
+
19
+
20
+ # If extensions (or modules to document with autodoc) are in another directory,
21
+ # add these directories to sys.path here. If the directory is relative to the
22
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
23
+ #sys.path.insert(0, os.path.abspath('.'))
24
+
25
+ # -- General configuration ------------------------------------------------
26
+ # If your documentation needs a minimal Sphinx version, state it here.
27
+ #needs_sphinx = '1.0'
28
+
29
+ # Add any Sphinx extension module names here, as strings. They can be
30
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
31
+ # ones.
32
+ extensions = [
33
+ 'sphinx.ext.todo',
34
+ 'sphinx.ext.coverage',
35
+ 'sphinx.ext.ifconfig',
36
+ 'sphinx.ext.viewcode',
37
+ ]
38
+
39
+ # Add any paths that contain templates here, relative to this directory.
40
+ templates_path = ['rubypwntemplates']
41
+
42
+ # The suffix(es) of source filenames.
43
+ # You can specify multiple suffix as a list of string:
44
+ #source_suffix = ['.rst', '.md']
45
+ source_suffix = '.rst'
46
+
47
+ # The encoding of source files.
48
+ #source_encoding = 'utf-8-sig'
49
+
50
+ # The master toctree document.
51
+ master_doc = 'index'
52
+
53
+ # General information about the project.
54
+ project = u'rubypwn'
55
+ copyright = u'2015, atdog'
56
+ author = u'atdog'
57
+
58
+ # The version info for the project you're documenting, acts as replacement for
59
+ # |version| and |release|, also used in various other places throughout the
60
+ # built documents.
61
+ #
62
+ # The short X.Y version.
63
+ version = '0.0.5'
64
+ # The full version, including alpha/beta/rc tags.
65
+ release = '0.0.5'
66
+
67
+ # The language for content autogenerated by Sphinx. Refer to documentation
68
+ # for a list of supported languages.
69
+ #
70
+ # This is also used if you do content translation via gettext catalogs.
71
+ # Usually you set "language" from the command line for these cases.
72
+ language = None
73
+
74
+ # There are two options for replacing |today|: either, you set today to some
75
+ # non-false value, then it is used:
76
+ #today = ''
77
+ # Else, today_fmt is used as the format for a strftime call.
78
+ #today_fmt = '%B %d, %Y'
79
+
80
+ # List of patterns, relative to source directory, that match files and
81
+ # directories to ignore when looking for source files.
82
+ exclude_patterns = []
83
+
84
+ # The reST default role (used for this markup: `text`) to use for all
85
+ # documents.
86
+ #default_role = None
87
+
88
+ # If true, '()' will be appended to :func: etc. cross-reference text.
89
+ #add_function_parentheses = True
90
+
91
+ # If true, the current module name will be prepended to all description
92
+ # unit titles (such as .. function::).
93
+ #add_module_names = True
94
+
95
+ # If true, sectionauthor and moduleauthor directives will be shown in the
96
+ # output. They are ignored by default.
97
+ #show_authors = False
98
+
99
+ # The name of the Pygments (syntax highlighting) style to use.
100
+ pygments_style = 'sphinx'
101
+
102
+ # A list of ignored prefixes for module index sorting.
103
+ #modindex_common_prefix = []
104
+
105
+ # If true, keep warnings as "system message" paragraphs in the built documents.
106
+ #keep_warnings = False
107
+
108
+ # If true, `todo` and `todoList` produce output, else they produce nothing.
109
+ todo_include_todos = True
110
+
111
+
112
+ # -- Options for HTML output ----------------------------------------------
113
+
114
+ # The theme to use for HTML and HTML Help pages. See the documentation for
115
+ # a list of builtin themes.
116
+ html_theme = 'sphinx_rtd_theme'
117
+
118
+ # Theme options are theme-specific and customize the look and feel of a theme
119
+ # further. For a list of options available for each theme, see the
120
+ # documentation.
121
+ #html_theme_options = {}
122
+
123
+ # Add any paths that contain custom themes here, relative to this directory.
124
+ #html_theme_path = []
125
+
126
+ # The name for this set of Sphinx documents. If None, it defaults to
127
+ # "<project> v<release> documentation".
128
+ #html_title = None
129
+
130
+ # A shorter title for the navigation bar. Default is the same as html_title.
131
+ #html_short_title = None
132
+
133
+ # The name of an image file (relative to this directory) to place at the top
134
+ # of the sidebar.
135
+ #html_logo = None
136
+
137
+ # The name of an image file (within the static path) to use as favicon of the
138
+ # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
139
+ # pixels large.
140
+ #html_favicon = None
141
+
142
+ # Add any paths that contain custom static files (such as style sheets) here,
143
+ # relative to this directory. They are copied after the builtin static files,
144
+ # so a file named "default.css" will overwrite the builtin "default.css".
145
+ html_static_path = ['rubypwnstatic']
146
+
147
+ # Add any extra paths that contain custom files (such as robots.txt or
148
+ # .htaccess) here, relative to this directory. These files are copied
149
+ # directly to the root of the documentation.
150
+ #html_extra_path = []
151
+
152
+ # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
153
+ # using the given strftime format.
154
+ #html_last_updated_fmt = '%b %d, %Y'
155
+
156
+ # If true, SmartyPants will be used to convert quotes and dashes to
157
+ # typographically correct entities.
158
+ #html_use_smartypants = True
159
+
160
+ # Custom sidebar templates, maps document names to template names.
161
+ #html_sidebars = {}
162
+
163
+ # Additional templates that should be rendered to pages, maps page names to
164
+ # template names.
165
+ #html_additional_pages = {}
166
+
167
+ # If false, no module index is generated.
168
+ #html_domain_indices = True
169
+
170
+ # If false, no index is generated.
171
+ #html_use_index = True
172
+
173
+ # If true, the index is split into individual pages for each letter.
174
+ #html_split_index = False
175
+
176
+ # If true, links to the reST sources are added to the pages.
177
+ #html_show_sourcelink = True
178
+
179
+ # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
180
+ #html_show_sphinx = True
181
+
182
+ # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
183
+ #html_show_copyright = True
184
+
185
+ # If true, an OpenSearch description file will be output, and all pages will
186
+ # contain a <link> tag referring to it. The value of this option must be the
187
+ # base URL from which the finished HTML is served.
188
+ #html_use_opensearch = ''
189
+
190
+ # This is the file name suffix for HTML files (e.g. ".xhtml").
191
+ #html_file_suffix = None
192
+
193
+ # Language to be used for generating the HTML full-text search index.
194
+ # Sphinx supports the following languages:
195
+ # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
196
+ # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
197
+ #html_search_language = 'en'
198
+
199
+ # A dictionary with options for the search language support, empty by default.
200
+ # Now only 'ja' uses this config value
201
+ #html_search_options = {'type': 'default'}
202
+
203
+ # The name of a javascript file (relative to the configuration directory) that
204
+ # implements a search results scorer. If empty, the default will be used.
205
+ #html_search_scorer = 'scorer.js'
206
+
207
+ # Output file base name for HTML help builder.
208
+ htmlhelp_basename = 'rubypwndoc'
209
+
210
+ # -- Options for LaTeX output ---------------------------------------------
211
+
212
+ latex_elements = {
213
+ # The paper size ('letterpaper' or 'a4paper').
214
+ #'papersize': 'letterpaper',
215
+
216
+ # The font size ('10pt', '11pt' or '12pt').
217
+ #'pointsize': '10pt',
218
+
219
+ # Additional stuff for the LaTeX preamble.
220
+ #'preamble': '',
221
+
222
+ # Latex figure (float) alignment
223
+ #'figure_align': 'htbp',
224
+ }
225
+
226
+ # Grouping the document tree into LaTeX files. List of tuples
227
+ # (source start file, target name, title,
228
+ # author, documentclass [howto, manual, or own class]).
229
+ latex_documents = [
230
+ (master_doc, 'rubypwn.tex', u'rubypwn Documentation',
231
+ u'atdog', 'manual'),
232
+ ]
233
+
234
+ # The name of an image file (relative to this directory) to place at the top of
235
+ # the title page.
236
+ #latex_logo = None
237
+
238
+ # For "manual" documents, if this is true, then toplevel headings are parts,
239
+ # not chapters.
240
+ #latex_use_parts = False
241
+
242
+ # If true, show page references after internal links.
243
+ #latex_show_pagerefs = False
244
+
245
+ # If true, show URL addresses after external links.
246
+ #latex_show_urls = False
247
+
248
+ # Documents to append as an appendix to all manuals.
249
+ #latex_appendices = []
250
+
251
+ # If false, no module index is generated.
252
+ #latex_domain_indices = True
253
+
254
+
255
+ # -- Options for manual page output ---------------------------------------
256
+
257
+ # One entry per manual page. List of tuples
258
+ # (source start file, name, description, authors, manual section).
259
+ man_pages = [
260
+ (master_doc, 'rubypwn', u'rubypwn Documentation',
261
+ [author], 1)
262
+ ]
263
+
264
+ # If true, show URL addresses after external links.
265
+ #man_show_urls = False
266
+
267
+
268
+ # -- Options for Texinfo output -------------------------------------------
269
+
270
+ # Grouping the document tree into Texinfo files. List of tuples
271
+ # (source start file, target name, title, author,
272
+ # dir menu entry, description, category)
273
+ texinfo_documents = [
274
+ (master_doc, 'rubypwn', u'rubypwn Documentation',
275
+ author, 'rubypwn', 'One line description of project.',
276
+ 'Miscellaneous'),
277
+ ]
278
+
279
+ # Documents to append as an appendix to all manuals.
280
+ #texinfo_appendices = []
281
+
282
+ # If false, no module index is generated.
283
+ #texinfo_domain_indices = True
284
+
285
+ # How to display URL addresses: 'footnote', 'no', or 'inline'.
286
+ #texinfo_show_urls = 'footnote'
287
+
288
+ # If true, do not generate a @detailmenu in the "Top" node's menu.
289
+ #texinfo_no_detailmenu = False
@@ -0,0 +1,36 @@
1
+ Getting Started
2
+ ====================================
3
+
4
+ Installation
5
+ ------------------------
6
+
7
+ ::
8
+
9
+ gem install rubypwn
10
+
11
+
12
+
13
+ Basic Usage
14
+ ------------------------
15
+
16
+ class Exec ::
17
+
18
+ 2.2.2 :002 > e = Exec.new "ls"
19
+ => #<Exec:0x007f96742814e8>
20
+ 2.2.2 :003 > e.gets
21
+ Makefile
22
+ => "Makefile\n"
23
+
24
+ class Netcat ::
25
+
26
+ 2.2.2 :004 > e = Netcat.new "www.google.com", 80
27
+ => #<Netcat:0x007f9671a00cf8>
28
+ 2.2.2 :005 > e.puts "GET / HTTP/1.1"
29
+ GET / HTTP/1.1
30
+ => #<IO:fd 12>
31
+ 2.2.2 :006 > e.puts
32
+ => #<IO:fd 12>
33
+ 2.2.2 :008 > e.gets
34
+ HTTP/1.1 302 Found
35
+ => "HTTP/1.1 302 Found\r\n"
36
+
@@ -0,0 +1,33 @@
1
+ rubypwn
2
+ ====================================
3
+
4
+ test
5
+
6
+ Getting Started
7
+ ---------------
8
+
9
+ .. toctree::
10
+ :maxdepth: 3
11
+ :glob:
12
+
13
+ about
14
+ getting_started
15
+
16
+ Module Index
17
+ ------------
18
+
19
+ All documented module in rubypwn.
20
+
21
+ .. toctree::
22
+ :maxdepth: 1
23
+ :glob:
24
+
25
+ basic
26
+ asm
27
+
28
+ Indices and tables
29
+ ==================
30
+
31
+ * :ref:`genindex`
32
+ * :ref:`modindex`
33
+ * :ref:`search`
@@ -36,3 +36,7 @@ end
36
36
  def nop()
37
37
  "\x90"
38
38
  end
39
+
40
+ def log(str)
41
+ $stderr.puts "[-] #{str}"
42
+ end
@@ -1,16 +1,19 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rubypwn'
3
- s.version = '0.0.5'
3
+ s.version = '0.0.6'
4
4
  s.date = '2015-08-26'
5
- s.summary = "pwntools - ruby version"
5
+ s.summary = "ruby pwn tools"
6
6
  s.description = <<-DESCRIPTION.strip.gsub(/\s+/, " ")
7
- A simple library for CTF pwning challegnges.
8
- Like Python's pwntools, it's used to help you for writing exploit.
7
+ A simple library for CTF pwning challenges.
8
+ Like Python's pwntools, it's used to help you write exploit quickly.
9
9
  DESCRIPTION
10
- s.authors = ["Su, Hung Chi"]
10
+ s.authors = ["Hung Chi Su"]
11
11
  s.email = 'atdog.tw@gmail.com'
12
12
  s.files = `git ls-files`.split("\n")
13
13
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
14
14
  s.homepage = 'https://github.com/atdog/rubypwn/'
15
15
  s.license = 'MIT'
16
+ s.add_runtime_dependency 'rainbow', '~> 2.0', '>= 2.0.0'
17
+ s.add_runtime_dependency 'thread', '~> 0.2', '>= 0.2.2'
18
+ s.add_runtime_dependency 'rest-client', '~> 1.8', '>= 1.8.0'
16
19
  end
metadata CHANGED
@@ -1,17 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
- - Su, Hung Chi
7
+ - Hung Chi Su
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-08-26 00:00:00.000000000 Z
12
- dependencies: []
13
- description: A simple library for CTF pwning challegnges. Like Python's pwntools,
14
- it's used to help you for writing exploit.
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rainbow
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: thread
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.2'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 0.2.2
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.2'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.2.2
53
+ - !ruby/object:Gem::Dependency
54
+ name: rest-client
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '1.8'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 1.8.0
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.8'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 1.8.0
73
+ description: A simple library for CTF pwning challenges. Like Python's pwntools, it's
74
+ used to help you write exploit quickly.
15
75
  email: atdog.tw@gmail.com
16
76
  executables: []
17
77
  extensions: []
@@ -19,7 +79,15 @@ extra_rdoc_files: []
19
79
  files:
20
80
  - ".gitignore"
21
81
  - Gemfile
22
- - README
82
+ - README.md
83
+ - docs/.gitignore
84
+ - docs/Makefile
85
+ - docs/source/about.rst
86
+ - docs/source/asm.rst
87
+ - docs/source/basic.rst
88
+ - docs/source/conf.py
89
+ - docs/source/getting_started.rst
90
+ - docs/source/index.rst
23
91
  - lib/asm.rb
24
92
  - lib/basic.rb
25
93
  - lib/exec.rb
@@ -49,5 +117,5 @@ rubyforge_project:
49
117
  rubygems_version: 2.4.8
50
118
  signing_key:
51
119
  specification_version: 4
52
- summary: pwntools - ruby version
120
+ summary: ruby pwn tools
53
121
  test_files: []
data/README DELETED
File without changes