Skip to content

Commit

Permalink
add ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
xanhacks committed May 7, 2024
1 parent d9a9f33 commit 1c9db3a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/docs/getting-started/vulnerability-reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ toc: true
- [Article - PHP filter chains: file read from error-based oracle](https://www.synacktiv.com/publications/php-filter-chains-file-read-from-error-based-oracle)
- [Github - synacktiv/php_filter_chains_oracle_exploit](https://github.com/synacktiv/php_filter_chains_oracle_exploit)

## Ruby

- [Send()-ing Myself Belated Christmas Gifts - GitHub.com's Environment Variables & GHES Shell](https://starlabs.sg/blog/2024/04-sending-myself-github-com-environment-variables-and-ghes-shell/)

## Insecure Deserialization

- [Article - Finding PHP Serialization Gadget Chain in PHP](https://www.xanhacks.xyz/p/php-gadget-chain/)
Expand Down
39 changes: 39 additions & 0 deletions content/docs/programming/javascript/ruby.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "Ruby"
description: "Overview of Ruby"
lead: "Overview of Ruby"
date: 2023-01-01T00:00:00+00:00
lastmod: 2023-01-01T00:00:00+00:00
draft: false
images: []
menu:
docs:
parent: "programming"
weight: 620
toc: true
---

## Ruby

[Ruby](https://www.ruby-lang.org/en/) is a dynamic, open-source, object-oriented programming language known for its simplicity and productivity, often used for web development and data analysis.

## send

The `send` method allows you to dynamically invoke a method.

```ruby
class HelloWorld
def print(*args)
puts("Hello " + args.join(' '))
end
end

obj = HelloWorld.new()
obj.print('world') # => 'Hello World'
obj.send('print', 'world') # => 'Hello World'
```

## References

- [Send()-ing Myself Belated Christmas Gifts - GitHub.com's Environment Variables & GHES Shell](https://starlabs.sg/blog/2024/04-sending-myself-github-com-environment-variables-and-ghes-shell/)
- [Attacking Ruby on Rails Applications](http://phrack.org/issues/69/12.html)

0 comments on commit 1c9db3a

Please sign in to comment.