Protected: 一次基于LFI的入侵流程

This content is password protected. To view it please enter your password below:

Protected: 一次基于LFI的入侵流程 by @sskaje: https://sskaje.me/2013/04/%e4%b8%80%e6%ac%a1%e5%9f%ba%e4%ba%8elfi%e7%9a%84%e5%85%a5%e4%be%b5%e6%b5%81%e7%a8%8b/

iPad not Charging on MacBook Pro?

It’s not the first time my iPad show not charging when it’s connected to my MBP.
IMG_0107

‘About This Mac’ => ‘More Info…’ => ‘System Report…’ => ‘Hardware’ => ‘USB’ => ‘iPad’

QQ20130425-1@2x

You’ll find ‘Extra Operating Current’ disappeared here.

Continue reading “iPad not Charging on MacBook Pro?” »

iPad not Charging on MacBook Pro? by @sskaje: https://sskaje.me/2013/04/ipad-not-charging-on-macbook-pro/

MQTT client lib in PHP

UPDATE:
SUBSCRIBE/SUBACK/UNSUBSCRIBE/UNSUBACK are now supported

===========================

MQ Telemetry Transport, MQTT is a machine-to-machine (M2M)/”Internet of Things” connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.

In the ‘software’ page, I found two client libs in PHP, phpMQTT by @bluerhinos and PECL SAM, outdated or dead.

I chose phpMQTT in my project publishing message to mosquitto but found it somewhat too old and lack of QoS support. I decided to code my own.

I spended 6 hours watching CSL, Bundesliga, and Barclay’s English Premier League, then brought out this: https://github.com/sskaje/mqtt. Almost the most ugly code I’ve ever written.

Only PUBLISH and it’s related commands are supported until I have enough time to finish it.

It might be a choice to those who are publishing their messages and not subscribing any topic.

MQTT client lib in PHP by @sskaje: https://sskaje.me/2013/04/mqtt-client-lib-in-php/

PHP Client for Apple Push Notification Service

源码在:https://github.com/sskaje/apns

协议消息体使用的是APNS的简版消息结构,暂不支持Enhanced notification format,即不支持identifier和expiry,省了8个字节,不过稍后有空会加上。

大致的数据逻辑是:

走了个异步队列。应用将推送数据按公用结构(适配非APNS的推送需求)带上推送的目标设备类型+客户端标识(支持同平台下多款应用的推送)所用的队列;后端程序阻塞或非阻塞的模式从队列里取数据,然后根据数据信息写APNS或者其他类型终端(例如Android)的推送服务。

开发过程中遇到的最大问题主要在 stream_socket_client() 的 STREAM_CLIENT_PERSISTENT 使用上:

Continue reading “PHP Client for Apple Push Notification Service” »

PHP Client for Apple Push Notification Service by @sskaje: https://sskaje.me/2012/11/apns-client/