일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 로맨스스캠
- XSS
- NUGU
- 모의해킹
- 네이버카페
- 많다..
- CryptoJS
- 허리디스크
- self-signed
- intelmac
- 취약점
- 척추관협착증
- 변태는
- ssrf
- speed-measure-webpack-plugin
- 보이스피싱 #대검찰청 #명의도용 #비밀번호 #계좌번호 #공공기관 #가짜검찰청
- MongoDB #NoSQL #CreateUser #DropUser #mongod #mognod.conf
- esbuild
- open redirect
- 안전결제
- ue4dumper
- 거래사기
- 중고나라
- Frida
- Malware Sample
- CJ대한통운 #쿠팡 #통관번호오류 #통관고유번호오류 #안주원팀장 #모건인베스트
- 채팅환전사기
- shell_gpt
- react
- Sequoia
- Today
- Total
목록데이터베이스 (5)
annyoung
Use $facet when you wanna combine two queries [ { "$facet": { "all": [ { "$match": { "project": ObjectId("61d533c23186e90323d116c3"), } }, {"$count": "TotalCount"}, ], "completed": [ { "$match": { "project": ObjectId("61d533c23186e90323d116c3"), "$or": [ {"status": "CONSIGNMENT_SUBMIT"}, {"status": "AGENCY_SUBMIT"}, ] } }, {"$count": "TotalCount"}, ], "noResponse": [ { "$match": { "project": Obj..
회사에서 맨날 MongoDB를 사용하고 있는데 설정한다고 구글 검색하기가 귀찮아서 따로 만들어봤다. public으로 설정이 잘못되어 있어서 하마터면 털릴뻔했다 ㅡㅡ.. MongoDB port(27017)을 인바운드와 noauth로 열어주는 경우엔 잘못하면 털린다. 그렇다면 이 설정을 어떻게 피하냐면.. 다음과 같이 하면 된다. 몽고디비를 새로 설치한 후 초기 셋팅이라고 생각하면 된다. 1. 초기에는 authorization이 disabled 되어 있으므로 그냥 mongo 쉘 커맨드로 접속하면 된다. mongo 2. admin DB를 생성하여 모든 DB에 접속할 권한을 준다. use admin db.createUser({ user: "", pwd: "", roles: [ "userAdminAnyDataba..
brew install mongodb First, you have to install mongodb. nopsled@smleeo3o:~/dump (=`ω´=)$ php -vPHP 7.1.7 (cli) (built: Jul 15 2017 18:08:09) ( NTS )Copyright (c) 1997-2017 The PHP GroupZend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies Second, check your php version. this example's php version is 7.1. brew tap kyslik/php brew install php71-mongodb Third, we have to install php MongoD..
{ "_id" : ObjectId("5a129bde1c6fcc3ea4d21db0"), "email" : "test@gmail.com", "name" : "test", "authType" : "google", "loc" : { "country" : "US" }}, { "_id" : ObjectId("5a129bde1c6fcc3ea4d21db0"), "email" : "test2@gmail.com", "name" : "test2", "authType" : "google", "loc" : {}}, { "_id" : ObjectId("5a129bde1c6fcc3ea4d21db0"), "email" : "test3@gmail.com", "name" : "test3", "authType" : "google", "l..
[root@dataking01 data]# mongoMongoDB shell version v3.4.9connecting to: mongodb://127.0.0.1:27017MongoDB server version: 3.4.9> use testdbswitched to db testdb> db.createCollection("test_collection"){"ok" : 0,"errmsg" : "not authorized on testdb to execute command { create: \"test_collection\" }","code" : 13,"codeName" : "Unauthorized"}> 위와 같이 authorized가 안되어 있어서 컬렉션도 못만들고 난리가 났다. [root@dataking..