ws

IDEA debug漏洞第一篇(weblogic,cve-2017-10271)

谁说我不能喝 提交于 2019-12-03 04:30:18
在weblogic.wsee.jaxws.WLSServletAdapter的129行打点 1 if (var2.getMethod().equals("GET") || var2.getMethod().equals("HEAD")) { 然后开启debug模式,进行发包,截获断点处的请求包。 burp包内容: POST /wls-wsat/CoordinatorPortType11 HTTP/1.1 Host: localhost:7001 Content-Type: text/xml Content-Length: 987 <?xml version="1.0"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/"> <java version="1.8.0_131" class="java.beans.XMLDecoder"> <void class="java.lang.ProcessBuilder"> <array class="java.lang.String" length="3"> <void

深入理解Loadrunner中的Browser Emulation

柔情痞子 提交于 2019-12-03 03:57:41
一:基本介绍 在Loadrunner的使用中,对于Run-time Settings下的browser emulation设置是比较容易让人产生困惑的地方。下面我们结合sniffer来具体看看每个选项的用途,以及对测试的影响。 Browser Emulation 图 1--什么是浏览器缓存?-- 简单来说,浏览器的缓存就是--使用浏览器访问页面时,浏览器会将一些网页的文字,图片,保存到本地的一个文件内。然后,再次使用浏览器访问这个网页的时候,先前被保存(缓存)的文字和图片不会从新被下载,而是使用保存在本地的资源。 Browser Emulation就是用来设置脚本回放时,lr模拟浏览器缓存策略的 缓存的东西一般都放在C:\Documents and Settings\用户\Local Settings\Temporary Internet Files下。可以进去打开立面都是些什么--文档和图片,而且都是你曾经浏览过的界面中信息 2--Browser Emulation选项说明-- 详解见: http://www.rosoo.net/a/201011/10401.html http://hi.baidu.com/c1425/item/0f4af76fc4f3a20ca1cf0f9d 上面这个连接对浏览器的设置,解释的很好,本人尝试了对Browser Emulation各种设置

Pywss + Vue 实现WebSocket在线聊天室

守給你的承諾、 提交于 2019-12-03 02:47:31
项目地址: https://github.com/CzaOrz/ioco/tree/master/open_source_project/web_socket_chat 项目环境: 前端:JS环境都已经配置好了,可以直接使用 后端:python3.X,还需要安装pywss包(pywss低于0.0.9版本的有点问题,我临时修复并更新到0.0.9了,其他...): pip install pywss==0.0.9 我们首先看下实际效果图: 首先打开两个前端,看看效果(记得开启后端服务哦): 再来看看后台: 接下来,先来看服务端代码: server.py from pywss import Pyws, route, json, ConnectManager @route('/ws/chat') def ws_chat(request, data): json_data = json.loads(data) if json_data.get('start') == True: # 接收start指令 # 更新所有已建立连接的socket - 当前在线人数 request.conn.send_to_all({'online': ConnectManager.online()}) return {'sock_id': request.conn.name} # 返回自身唯一sock_id msg

Bottle + WebSocket

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: is it possible to host a normal Bottle application and a WebSocket one (example: https://github.com/defnull/bottle/blob/master/docs/async.rst ) in the same application (same port)? So that /ws will go to WebSocket handler and all other will be normally routed to other bottle handlers. 回答1: It sure is. The server: #!/usr/bin/python import json from bottle import route, run, request, abort, Bottle ,static_file from pymongo import Connection from gevent import monkey; monkey.patch_all() from time import sleep app = Bottle() @app.route('

JaxWS ClassCastException on JBoss

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm using JBoss 5.1.0.GA (for JDK6), and jaxws 2.2.6. When I invoke the webservice, I get the following exception: java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider org.jboss.ws.core.jaxws.spi.ProviderImpl could not be instantiated: java.lang.ClassCastException at org.jboss.resource.work.WorkWrapper.completed(WorkWrapper.java:283) at org.jboss.util.threadpool.BasicTaskWrapper.taskCompleted(BasicTaskWrapper.java:367) at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:268) at java.util

VBA Date + For logic

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: can someone help me? It seems my for logic is not working at all because it keeps returning me 12:00AM for starttime Here is my code Sub forlogic() Dim i As Single Dim totalrow As Double Dim startdate As Date Dim mydate As Date totalrow = Sheet1.Range("A1", Sheet1.Range("A1").End(xlDown)).Rows.Count mydate = Date Debug.Print mydate mydate = mydate - 90 Debug.Print mydate For i = 1 To i = rowtotal Step 2 startdate = Format(Range("E" & i).Value, "short date") startdate = Format(Date, "mm/dd/yyyy") If mydate > startdate Then Range("M" & i)

Websocket SSL connection

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to test a secure websocket but I'm having trouble. Here is my test: var WebSocket = require('ws'); describe('testing Web Socket', function() { it('should do stuff', function(done) { var ws = new WebSocket('wss://localhost:15449/', { protocolVersion: 8, origin: 'https://localhost:15449' }); ws.on('open', function() { console.log('open!!!'); done(); }); console.log(ws); }); }); Here's the log of "ws" after it's created: { domain: null, _events: { open: [Function] }, _maxListeners: undefined, _socket: null, _ultron: null,

Excel VBA For Each Worksheet Loop

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working on code to basically go through each sheet in my Workbook, and then update column widths. Below is the code I wrote; I don't receive any errors, but it also doesn't actually do anything. Any help is greatly appreciated! Option Explicit Dim ws As Worksheet, a As Range Sub forEachWs() For Each ws In ActiveWorkbook.Worksheets Call resizingColumns Next End Sub Sub resizingColumns() Range("A:A").ColumnWidth = 20.14 Range("B:B").ColumnWidth = 9.71 Range("C:C").ColumnWidth = 35.86 Range("D:D").ColumnWidth = 30.57 Range("E:E")

How to use TLS in Play!Framework WebSockets (“wss://”)

匿名 (未验证) 提交于 2019-12-03 01:11:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I cannot use wss:// in my simple WebSocket app created with Play!Framework 2.2. It echoes the message back. The endpoint is like this def indexWS2 = WebSocket.using[String] { request => { println("got connection to indexWS2") var channel: Option[Concurrent.Channel[String]] = None val outEnumerator: Enumerator[String] = Concurrent.unicast(c => channel = Some(c)) // Log events to the console val myIteratee: Iteratee[String, Unit] = Iteratee.foreach[String] {gotString => { println("received: " + gotString) // send string back channel.foreach(_

使用ws

匿名 (未验证) 提交于 2019-12-03 00:26:01
要使用WebSocket,关键在于服务器端支持,这样,我们才有可能用支持WebSocket的浏览器使用WebSocket。 ws模块 在Node.js中,使用最广泛的WebSocket模块是 ws ,我们创建一个 hello-ws 的VS Code工程,然后在 package.json 中添加 ws 的依赖: "dependencies": { "ws": "1.1.1" } 整个工程结构如下: hello-ws/ | +- .vscode/ | | | +- launch.json <-- VSCode 配置文件 | +- app.js <-- 启动js文件 | +- package.json <-- 项目描述文件 | +- node_modules/ < -- npm 安装的所有依赖包 运行 npm install 后,我们就可以在 app.js 中编写WebSocket的服务器端代码。 创建一个WebSocket的服务器实例非常容易: // 导入WebSocket模块: const WebSocket = require ( 'ws' ); // 引用Server类: const WebSocketServer = WebSocket.Server; // 实例化: const wss = new WebSocketServer({ port: 3000 }); 这样