-
Notifications
You must be signed in to change notification settings - Fork 0
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
implement basic sqli service #1
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff man, sorry for the late review 🚀
DOCKER_DBPORT=3306 | ||
DOCKER_DBADDR=$(DOCKER_DBHOST):$(DOCKER_DBPORT) | ||
|
||
ASROOT=sudo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be very curious if we can't make this work with podman 100% sudoless, this sudo stuff/sudo group shit on docker always annoyed me x_x. But unrelated to the PR, just sharing etc.
# help | ||
|
||
``` | ||
$ make help | ||
usage: make [target] ... | ||
|
||
targets: | ||
db: Start db | ||
dbcli: connects and retrieves a database a shell. | ||
dbtest: test db connectivity | ||
build: build sqli | ||
up: build, setup db and start sqli service. | ||
run: run | ||
help: Show this help message. | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# help | |
``` | |
$ make help | |
usage: make [target] ... | |
targets: | |
db: Start db | |
dbcli: connects and retrieves a database a shell. | |
dbtest: test db connectivity | |
build: build sqli | |
up: build, setup db and start sqli service. | |
run: run | |
help: Show this help message. | |
``` | |
# help | |
Just run `make help`. |
Rationale: Copying the help here will only make the docs eventually outdated.
func writeBanner(w http.ResponseWriter) { | ||
fmt.Fprintf(w, | ||
`+------------------------------------------------------------------------------+ | ||
| madlambda news network | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤣 🚀
|
||
INSERT INTO users (user,pass) VALUES | ||
("admin", "very-secret-pass"), | ||
("i4k", "****************"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
("i4k", "****************"), | |
("i4k", "i love ken thompson"), |
😆
( | ||
"Russia retreats from crypto ban as it pushes rules for industry", | ||
"Russias Ministry of Finance is planning to regulate cryptocurrencies in the country, despite earlier calls by the central bank for a ban on crypto." | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a newline
No description provided.