<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="lt">
	<id>https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=Reboot_NC450</id>
	<title>Reboot NC450 - Versijų istorija</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=Reboot_NC450"/>
	<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=Reboot_NC450&amp;action=history"/>
	<updated>2026-04-19T10:35:50Z</updated>
	<subtitle>Šio puslapio versijų istorija projekte</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.eofnet.lt/w//index.php?title=Reboot_NC450&amp;diff=9658&amp;oldid=prev</id>
		<title>\dev\null: Naujas puslapis: Reboot NC450 Camera bash scriptas   &lt;syntaxhighlight lang=&quot;bash&quot;&gt; #!/bin/bash  cookies1=/etc/mods/cookies sslconf=/etc/mods/openssl_allow_tls1.0.cnf camera=&quot;https://192.168.1.15/...</title>
		<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=Reboot_NC450&amp;diff=9658&amp;oldid=prev"/>
		<updated>2024-06-29T21:46:00Z</updated>

		<summary type="html">&lt;p&gt;Naujas puslapis: Reboot NC450 Camera bash scriptas   &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; #!/bin/bash  cookies1=/etc/mods/cookies sslconf=/etc/mods/openssl_allow_tls1.0.cnf camera=&amp;quot;https://192.168.1.15/...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Naujas puslapis&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Reboot NC450 Camera bash scriptas&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
cookies1=/etc/mods/cookies&lt;br /&gt;
sslconf=/etc/mods/openssl_allow_tls1.0.cnf&lt;br /&gt;
camera=&amp;quot;https://192.168.1.15/&amp;quot;&lt;br /&gt;
username=&amp;quot;admin&amp;quot;&lt;br /&gt;
password=&amp;quot;admin&amp;quot;&lt;br /&gt;
hashed_password=$(python3 -c &amp;quot;import base64, hashlib; encoded = base64.b64encode('$password'.encode()).decode(); print(hashlib.md5(encoded.encode()).hexdigest())&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
token=$(OPENSSL_CONF=$sslconf curl -c $cookies1 -X POST -H &amp;quot;Content-Type: application/x-www-form-urlencoded&amp;quot; -d &amp;quot;Username=$username&amp;amp;Password=$hashed_password&amp;quot; \&lt;br /&gt;
  ${camera}login.fcgi --insecure -s| jq -r '.token')&lt;br /&gt;
&lt;br /&gt;
if [[ &amp;quot;$token&amp;quot; == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
  echo &amp;quot;Unable to get authorization token!&amp;quot;&lt;br /&gt;
  echo &amp;quot;There must be error in username/password combination!&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
json=$(OPENSSL_CONF=$sslconf curl -b $cookies1 -X POST -d &amp;quot;token=$token&amp;quot; -H &amp;quot;Content-Type: application/x-www-form-urlencoded&amp;quot; ${camera}reboot.fcgi \&lt;br /&gt;
  -e &amp;quot;${camera}index.html&amp;quot; --insecure -s)&lt;br /&gt;
&lt;br /&gt;
if [[ &amp;quot;$json&amp;quot; == *&amp;quot;Code\&amp;quot;:0&amp;quot;* ]]; then&lt;br /&gt;
  echo &amp;quot;Reboot success!&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
  echo &amp;quot;Reboot fail!&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Failas '''openssl_allow_tls1.0.cnf'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
openssl_conf = openssl_init&lt;br /&gt;
&lt;br /&gt;
[openssl_init]&lt;br /&gt;
ssl_conf = ssl_sect&lt;br /&gt;
&lt;br /&gt;
[ssl_sect]&lt;br /&gt;
system_default = system_default_sect&lt;br /&gt;
&lt;br /&gt;
[system_default_sect]&lt;br /&gt;
CipherString = DEFAULT@SECLEVEL=0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripts]]&lt;/div&gt;</summary>
		<author><name>\dev\null</name></author>
	</entry>
</feed>