Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed base64DecodedData function to remove null characters from the decoded output #2240

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

misraved
Copy link
Contributor

@misraved misraved commented Jul 10, 2024

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results

Before

select instance_id, user_data from aws_unicode.aws_ec2_instance where instance_id='i-0de5b360e69bab111'
+---------------------+-----------+
| instance_id         | user_data |
+---------------------+-----------+
| i-0de5b360e69bab111 | pfconf    |
+---------------------+-----------+

After

select instance_id, user_data from aws_unicode.aws_ec2_instance where instance_id='i-0de5b360e69ba1111'
+---------------------+--------------------------------------------------------------------------------------------------------------------->
| instance_id         | user_data                                                                                                           >
+---------------------+--------------------------------------------------------------------------------------------------------------------->
| i-0de5b360e69ba1111 | pfconf000644 000766 000024 00000001762 14450131036 014363 0ustar00patrick.kreppsstaff000000 000000 >/etc/pf.confhome>
|                     | pass  out quick inet proto UDP  from $wan_if0 to any port $wan_tcp_out_portsrcconf000644 000766 000024 00000000132 1>
|                     | ###############################################################################pf_enable=""YES""                 # E>
|                     | g of execution by each shell## see also csh(1), environ(7).# more examples available at /usr/share/examples/csh/#ali>
|                     | ward-delete-word      bindkey -k up history-search-backward      bindkey -k down history-search-forward   endifendif>
|                     | /usr/share/examples/csh/#alias h      history 25alias j      jobs -lalias la     ls -aFalias lf     ls -FAalias ll  >
|                     | sstaff000000 000000 >/usr/home/ec2-user/.exrc"" Comments are preceeded by a double-quote."" Line numbers take up eig>
|                     | arn:aws:ec2:us-east-2:1111111111:instance/i-111111111111,t4g.micro,running,disabled,arm64,uefi,<nil>,517fbabb>
+---------------------+------------------------------------------------------------------------------------------------------------------

@misraved misraved self-assigned this Jul 10, 2024
@misraved misraved changed the title Fixed base64DecodedData function to remove null characters Fixed base64DecodedData function to remove null characters from the decoded output Jul 10, 2024
@misraved misraved merged commit f1295f2 into main Jul 10, 2024
1 check passed
@misraved misraved deleted the fix-aws-ec2-instance-table branch July 10, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants