// program to write to console // passing number console.log(8); // passing string console.log('hello'); // passing variable const x = 'hello'; console.log(x); // passing function function sayName() { return 'Hello John'; } console.log(sayName()); // passing string and a varia...
shpwrite.write(data,geometrytype,geometries,(err,result)=>{// result is equal to// {// shp: DataView(),// shx: DataView(),// dbf: DataView()// }if(err)throwerr;console.log(result);}); Generate a ArrayBuffer of a zipped shapefile, dbf, and prj, from a GeoJSON object. ...
" to the consoleconsole.log("Hello, World!"); Copy When writing comments, indent them at the same level as the code immediately below them: ocean.js // Initialize a functionfunctionalphabetizeOceans(){// Define oceans variable as a list of stringsconstoceans=["Pacific","Atlantic","Indian"...
log('disconnected'); }, error: function(connection, error) { console.log('uh oh', error); } }); // when encrypted TLS data is received from the client, process it server.process(encryptedBytesFromClient); Connect to a TLS server using node's net.Socket: var socket = new net.Socket...
console.log(err)return; } console.log(data) }) }varcontents = ['hello nodejs.','今天是2020年2月27日。','中国面临新型冠状病毒肺炎疫情的困扰。','武汉加油。'] function writeFile (filePath) {for(vari =0; i < contents.length; i++) { ...
dirsearch一下,发现/console就是这个网站的后台了,会302到/console/login/LoginForm.jsp 确实是Weblogic无疑了,我们试试弱口令能否登陆 weblogic Oracle@123 登陆成功 可以通过【部署】、【安装】尝试上载文件。 选择“安装”后,点击蓝色的”上载文件“ 这显然是一个好方法 ...
内容: 接下来就是随意开火了,因为evil.js里没有任何限制,你可以做任何需要的操作。 一个完整的利用链就形成了 有趣的是,这个题目是可以强行绕waf来执行js的。 另一种解法 在ctftime的writeup区域,看到了一种强行绕过waf的解法 https://gist.github.com/cgvwzq/2d875cb4bd752a99ca239e6ffe64f849 上面曾经提...
frompwnimport*context.log_level='debug'defsigin(p,username):p.recvuntil('sign (I)n or sign (U)p?')p.sendline('I')p.recvuntil('input your name')p.send(username)defchoose(p,c):p.recvuntil('4. do nothing')p.sendline(str(c))defpwn(p):count=0p.recvuntil('press enter to start ...
第二部分 flag 的话,再看controller.js源码 functionCheckController(req,res){letcheckcode=req.body.checkcode?req.body.checkcode:1234;console.log(req.body)if(checkcode.length===16){try{checkcode=checkcode.toLowerCase()if(checkcode!=="aGr5AtSp55dRacer"){res.status(403).json({"msg":"Invalid...
You can usemongoshto execute a script from the command line without entering themongoshconsole. To specify the filename, use the--fileor-fparameter to specify the filename. You may also need to specify connection information in addition to the--fileor-fparameters. ...