This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
MOBSF REST API Python Requests | |
""" | |
import json | |
import requests | |
from requests_toolbelt.multipart.encoder import MultipartEncoder | |
SERVER = "http://127.0.0.1:8000" | |
FILE = 'diva-beta.apk' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE EXTENSION unaccent; | |
CREATE TEXT SEARCH CONFIGURATION russian_unaccent( COPY = russian ); | |
ALTER TEXT SEARCH CONFIGURATION russian_unaccent | |
ALTER MAPPING FOR hword, hword_part, word | |
WITH unaccent, russian_stem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# place this into /usr/share/icecast2/web/json.xsl | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> | |
<xsl:output omit-xml-declaration="yes" method="text" indent="no" media-type="text/javascript" encoding="UTF-8"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="/icestats">{ | |
<xsl:for-each select="source"> | |
"<xsl:value-of select="@mount"/>":{ | |
"server_name":"<xsl:value-of select="server_name"/>", | |
"listeners":"<xsl:value-of select="listeners"/>", | |
"description":"<xsl:value-of select="server_description"/>", |