-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../../../"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>gallia.transports.schemes — gallia documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=b86133f3" /> | ||
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=e59714d7" /> | ||
|
||
|
||
<script src="../../../_static/jquery.js?v=5d32c60e"></script> | ||
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> | ||
<script src="../../../_static/documentation_options.js?v=5929fcd5"></script> | ||
<script src="../../../_static/doctools.js?v=9bcbadda"></script> | ||
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../../_static/js/theme.js"></script> | ||
<link rel="index" title="Index" href="../../../genindex.html" /> | ||
<link rel="search" title="Search" href="../../../search.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
<div class="wy-grid-for-nav"> | ||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" > | ||
|
||
|
||
|
||
<a href="../../../index.html" class="icon icon-home"> | ||
gallia | ||
</a> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> | ||
<p class="caption" role="heading"><span class="caption-text">Usage</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../setup.html">Setup</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../automation.html">Automation</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../config.html">Configuration</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../transports.html">Transports</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../env.html">Environment Variables</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../logging.html">Logging</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../plugins.html">Plugins</a></li> | ||
</ul> | ||
<p class="caption" role="heading"><span class="caption-text">UDS</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../uds/database.html">Database</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../uds/scan_modes.html">Scan Modes</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../uds/virtual_ecu.html">Virtual ECUs</a></li> | ||
</ul> | ||
<p class="caption" role="heading"><span class="caption-text">API</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../api.html">Public API</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > | ||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="../../../index.html">gallia</a> | ||
</nav> | ||
|
||
<div class="wy-nav-content"> | ||
<div class="rst-content"> | ||
<div role="navigation" aria-label="Page navigation"> | ||
<ul class="wy-breadcrumbs"> | ||
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li> | ||
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li> | ||
<li class="breadcrumb-item active">gallia.transports.schemes</li> | ||
<li class="wy-breadcrumbs-aside"> | ||
</li> | ||
</ul> | ||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<h1>Source code for gallia.transports.schemes</h1><div class="highlight"><pre> | ||
<span></span><span class="c1"># SPDX-FileCopyrightText: AISEC Pentesting Team</span> | ||
<span class="c1">#</span> | ||
<span class="c1"># SPDX-License-Identifier: Apache-2.0</span> | ||
|
||
<span class="kn">import</span><span class="w"> </span><span class="nn">sys</span> | ||
<span class="kn">from</span><span class="w"> </span><span class="nn">enum</span><span class="w"> </span><span class="kn">import</span> <span class="n">StrEnum</span><span class="p">,</span> <span class="n">unique</span> | ||
|
||
<span class="n">TCP</span> <span class="o">=</span> <span class="s2">"tcp"</span> | ||
<span class="n">TCP_LINES</span> <span class="o">=</span> <span class="s2">"tcp-lines"</span> | ||
<span class="n">DOIP</span> <span class="o">=</span> <span class="s2">"doip"</span> | ||
|
||
|
||
<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">platform</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s2">"linux"</span><span class="p">):</span> | ||
|
||
<span class="nd">@unique</span> | ||
<span class="k">class</span><span class="w"> </span><span class="nc">TransportScheme</span><span class="p">(</span><span class="n">StrEnum</span><span class="p">):</span> | ||
<span class="n">TCP</span> <span class="o">=</span> <span class="n">TCP</span> | ||
<span class="n">TCP_LINES</span> <span class="o">=</span> <span class="n">TCP_LINES</span> | ||
<span class="n">DOIP</span> <span class="o">=</span> <span class="n">DOIP</span> | ||
<span class="n">HSFZ</span> <span class="o">=</span> <span class="s2">"hsfz"</span> | ||
<span class="n">UNIX</span> <span class="o">=</span> <span class="s2">"unix"</span> | ||
<span class="n">UNIX_LINES</span> <span class="o">=</span> <span class="s2">"unix-lines"</span> | ||
|
||
<span class="n">ISOTP</span> <span class="o">=</span> <span class="s2">"isotp"</span> | ||
<span class="n">CAN_RAW</span> <span class="o">=</span> <span class="s2">"can-raw"</span> | ||
|
||
|
||
<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">platform</span> <span class="o">==</span> <span class="s2">"win32"</span><span class="p">:</span> | ||
|
||
<div class="viewcode-block" id="TransportScheme"> | ||
<a class="viewcode-back" href="../../../api.html#gallia.transports.TransportScheme">[docs]</a> | ||
<span class="nd">@unique</span> | ||
<span class="k">class</span><span class="w"> </span><span class="nc">TransportScheme</span><span class="p">(</span><span class="n">StrEnum</span><span class="p">):</span> | ||
<span class="n">TCP</span> <span class="o">=</span> <span class="n">TCP</span> | ||
<span class="n">TCP_LINES</span> <span class="o">=</span> <span class="n">TCP_LINES</span> | ||
<span class="n">DOIP</span> <span class="o">=</span> <span class="n">DOIP</span> | ||
|
||
<span class="n">FLEXRAY_RAW</span> <span class="o">=</span> <span class="s2">"fr-raw"</span> | ||
<span class="n">FLEXRAY_TP_LEGACY</span> <span class="o">=</span> <span class="s2">"fr-tp-legacy"</span></div> | ||
|
||
</pre></div> | ||
|
||
</div> | ||
</div> | ||
<footer> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p>© Copyright 2018, AISEC Pentest Team.</p> | ||
</div> | ||
|
||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
|
||
</footer> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
<script> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |