{"id":56,"date":"2021-12-07T16:27:06","date_gmt":"2021-12-07T16:27:06","guid":{"rendered":"https:\/\/programs.lucas-elliott.com\/?p=56"},"modified":"2021-12-07T22:00:19","modified_gmt":"2021-12-07T22:00:19","slug":"dws-defcon-warning-system-level-detection-tool","status":"publish","type":"post","link":"https:\/\/programs.lucas-elliott.com\/index.php\/2021\/12\/07\/dws-defcon-warning-system-level-detection-tool\/","title":{"rendered":"DWS &#8211; DEFCON Warning System Level Detection Tool"},"content":{"rendered":"\n<p>To start describing this program, we need a bit of a backstory. It\u2019s a little depressing, and substandard for what I normally share, but I feel it is important.<\/p>\n\n\n\n<p>Let\u2019s talk nuclear war. While the issue of nuclear war has been somewhat forgotten in today\u2019s culture, the threat is still a very real one. The Bulletin of Atomic Scientists created the&nbsp;<a href=\"https:\/\/en.wikipedia.org\/wiki\/Doomsday_Clock\" target=\"_blank\" rel=\"noreferrer noopener\">doomsday clock<\/a>&nbsp;in 1947, a symbolic clock updated in January of each year that represents how close the scientists believe mankind is to a doomsday event. The closer to midnight, the worse these scientist things are. In 1991, scientists rated the world \u201c17 minutes from midnight.\u201d Today, the clock is set to just 100 seconds from midnight, the Bulletin citing the threat of nuclear war as their primary concern.<\/p>\n\n\n\n<p>Don\u2019t go running to the hills just yet. The clock\u2019s purpose is not to warn citizens of impending doom, but to alert the scientific community that change must occur. Nonetheless, it is a good example of how nuclear war is still an active and important threat.<\/p>\n\n\n\n<p>Another important thing to note, is that while Hollywood would have you believe that a nuke landing in your country would be the end of all life, nukes are much more localized than that. Unless you are within some 15 miles of where a nuke hits, it is very likely that, with proper prep and precaution, one can survive an isolated event. There are other concerns with nuclear war. Mutually assured destruction is the concept many countries use as a defense against nuclear war. When a nuclear attack is detected, the victim sends all of its nukes at the attacker as well, assuring both sides loose. If multiple countries retaliate and all sides send all of their nukes, it could destroy our atmosphere. Hopefully our world leaders would recognize that this is not a viable response.<\/p>\n\n\n\n<p>But I hear you saying, this website isn\u2019t for preppers or scientists, it\u2019s for batch coders. Why are we talking about nuclear war? Bear with me, I\u2019m getting there, I promise.<\/p>\n\n\n\n<p>While the doomsday clock is updated yearly and is not intended to alert of immediate danger, the DEFCON Warning System established in 1984 is. Modeled after the U.S. Pentagon\u2019s own DEFCON system, the DWS is a service meant to alert the general population of nuclear threats. The system has a 5 stage alert process, with 5 being all clear and 1 meaning that a nuclear attack is in progress or is considered to be highly likely. You can (and should) read about it&nbsp;<a href=\"https:\/\/defconwarningsystem.com\/about\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<p>This system is not perfect, but is the best option to monitor the situation. Today\u2019s highlighted program monitors this system and updates the user as needed.<\/p>\n\n\n\n<p>The DEFCON Listener queries the website using winhttpjs, grabbing the current status and reacting based on said status. It can easily be set to run in the background with no indication it is there unless there is an update to the world theatre (this is done by adding a file called DontDisplayOnStartup.config to the program\u2019s directory).<\/p>\n\n\n\n<p>Whenever the level changes, an audible alert is sounded with a window displaying the status of the DWS, prompting the user to visit the website to read more.&nbsp;If the level goes down to one, it will turn up the volume using&nbsp;<a href=\"https:\/\/stackoverflow.com\/a\/22895700\/7872447\">jscript<\/a>&nbsp;(to make sure you hear the alert) and play the alert until you close the program. It will also read the DEFCON status out loud for both DEFCON two and one. It makes sure duplicate windows do not exist using&nbsp;<a href=\"https:\/\/github.com\/ITCMD\/CMDS\">CMDS<\/a>.<\/p>\n\n\n\n<p>The installation is simple. Just download the program and its files and save them to your appdata, documents, or wherever you would like as long as it does not require admin access to write to the directory.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Installation:<\/h4>\n\n\n\n<p>Simply download the latest release from the link below, and extract the files. Take the folder and place it somewhere in which it will be convenient to leave running. Run the script by running the&nbsp;<code>DefconWarningSystemLauncher.vbs<\/code>&nbsp;file.<\/p>\n\n\n\n<p>\u200b If you want the script to run on startup, simply put a shortcut file pointing to  <code>DefconWarningSystemLauncher.vbs<\/code> in <code>shell:startup<\/code>. To do this, right click the  <code>DefconWarningSystemLauncher.vbs<\/code> file and click &#8220;copy.&#8221;<\/p>\n\n\n\n<p>Then, either in a run dialogue or in File Explorer, type in <code>shell:startup<\/code>. This will bring you to the startup folder on your computer. Here, right click some empty space in the folder and select &#8220;Paste Shortcut.&#8221;<\/p>\n\n\n\n<p>\u200b You can also use the task scheduler to run the&nbsp;<code>vbs<\/code>&nbsp;file mentioned above automatically. Whatever floats your boat!<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Settings:<\/h4>\n\n\n\n<p>By default, DFW will tell you the status every time you start your machine. You have the option of hiding the status window <em>unless the DEFCON level is below 5<\/em> by adding the file <code>DontDisplayOnStartup.config<\/code> to the installation directory.<\/p>\n\n\n\n<p>Here is an in-depth preview of the program and its alerts:<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"432\" src=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/68747470733a2f2f692e696d6775722e636f6d2f6f3270763649722e676966.gif\" alt=\"\" data-id=\"58\" data-link=\"https:\/\/programs.lucas-elliott.com\/?attachment_id=58\" class=\"wp-image-58\"\/><figcaption class=\"blocks-gallery-item__caption\">Running &#8220;Defcon GUI&#8221; Directly to get status<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"436\" src=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111642.png\" alt=\"\" data-id=\"59\" data-link=\"https:\/\/programs.lucas-elliott.com\/?attachment_id=59\" class=\"wp-image-59\" srcset=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111642.png 862w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111642-320x162.png 320w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111642-160x81.png 160w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111642-768x388.png 768w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111642-300x152.png 300w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111642-850x430.png 850w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><figcaption class=\"blocks-gallery-item__caption\">Automatic All-Clear<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"867\" height=\"435\" src=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111701.png\" alt=\"\" data-id=\"60\" data-link=\"https:\/\/programs.lucas-elliott.com\/?attachment_id=60\" class=\"wp-image-60\" srcset=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111701.png 867w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111701-320x161.png 320w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111701-160x80.png 160w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111701-768x385.png 768w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111701-300x151.png 300w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111701-850x426.png 850w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><figcaption class=\"blocks-gallery-item__caption\">Automatic Defcon 4 Warning<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"861\" height=\"438\" src=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111710.png\" alt=\"\" data-id=\"61\" data-link=\"https:\/\/programs.lucas-elliott.com\/?attachment_id=61\" class=\"wp-image-61\" srcset=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111710.png 861w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111710-320x163.png 320w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111710-160x81.png 160w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111710-768x391.png 768w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111710-300x153.png 300w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111710-850x432.png 850w\" sizes=\"auto, (max-width: 861px) 100vw, 861px\" \/><figcaption class=\"blocks-gallery-item__caption\"> Automatic Defcon 3 Warning <\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"860\" height=\"437\" src=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111721.png\" alt=\"\" data-id=\"62\" data-link=\"https:\/\/programs.lucas-elliott.com\/?attachment_id=62\" class=\"wp-image-62\" srcset=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111721.png 860w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111721-320x163.png 320w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111721-160x81.png 160w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111721-768x390.png 768w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111721-300x152.png 300w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111721-850x432.png 850w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><figcaption class=\"blocks-gallery-item__caption\"> Automatic Defcon 2 Warning <\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"433\" src=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111738.png\" alt=\"\" data-id=\"63\" data-full-url=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111738.png\" data-link=\"https:\/\/programs.lucas-elliott.com\/?attachment_id=63\" class=\"wp-image-63\" srcset=\"https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111738.png 862w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111738-320x161.png 320w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111738-160x80.png 160w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111738-768x386.png 768w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111738-300x151.png 300w, https:\/\/programs.lucas-elliott.com\/wp-content\/uploads\/2021\/12\/image_2021-12-07_111738-850x427.png 850w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><figcaption class=\"blocks-gallery-item__caption\"> Automatic Defcon 1 Warning <\/figcaption><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>The program itself is fully open source. It depends on the following files which are also open source:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Volume up jscript tool by foxdrive:&nbsp;<a href=\"https:\/\/stackoverflow.com\/a\/22895700\/7872447\">https:\/\/stackoverflow.com\/a\/22895700\/7872447<\/a>&nbsp;used to turn up the volume<\/li><li>Wscript Audio player by SachaDee:&nbsp;<a href=\"https:\/\/stackoverflow.com\/a\/23316395\/7872447\">https:\/\/stackoverflow.com\/a\/23316395\/7872447<\/a>&nbsp;used to make an alert sound<\/li><li>Alert.Wav from Defcon Warning System:&nbsp;<a href=\"https:\/\/defconwarningsystem.com\/\">https:\/\/defconwarningsystem.com\/<\/a>&nbsp;used to make an alert sound<\/li><li>Winhttpjs.bat (soon to be replaced by curl) by npockmaka:&nbsp;<a href=\"https:\/\/github.com\/npocmaka\/batch.scripts\/blob\/master\/hybrids\/jscript\/winhttpjs.bat\">https:\/\/github.com\/npocmaka\/batch.scripts\/blob\/master\/hybrids\/jscript\/winhttpjs.bat<\/a>&nbsp;used to query status<\/li><li>CMDS.bat by ITCMD&nbsp;<a href=\"https:\/\/github.com\/ITCMD\/CMDS\">https:\/\/github.com\/ITCMD\/CMDS<\/a><\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-black-background-color has-black-color is-style-wide\"\/>\n\n\n\n<h2 class=\"release-downloads-header\">Version 2.0<\/h2><div class=\"release-description\"><p>[2.0]<\/p>\n<ul>\n<li>New Feature: No longer plays audible alert of defcon 4 or 3 on first launch of system.<\/li>\n<li>Bug Fix: Deletes Version File upon Checking Software Version<\/li>\n<li>Bug Fix: Typo Fixes<\/li>\n<\/ul><\/div><ul class=\"release-downloads\"><li><a href=\"https:\/\/github.com\/ITCMD\/defcon-level\/releases\/download\/2.0\/Defcon.Warning.System.Reader.2.0.zip\" rel=\"nofollow\"><strong class=\"release-name\">Defcon.Warning.System.Reader.2.0.zip<\/strong> <small class=\"release-size\">325.87 KB<\/small> <small class=\"release-download-count\">54 downloads<\/small><\/a><\/li><li><a href=\"https:\/\/github.com\/ITCMD\/defcon-level\/archive\/2.0.zip\" rel=\"nofollow\"><strong class=\"release-source\">Source code<\/strong><\/a><\/li><\/ul>\n\n\n\n<p>92 total downloads.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-black-background-color has-black-color is-style-wide\"\/>\n\n\n\n<p><a href=\"https:\/\/github.com\/ITCMD\/CMDS\" data-type=\"URL\" data-id=\"https:\/\/github.com\/ITCMD\/CMDS\" target=\"_blank\" rel=\"noreferrer noopener\">View the GitHub<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To start describing this program, we need a bit of a backstory. It\u2019s a little depressing, and substandard for what I normally share, but I feel it is important. Let\u2019s talk nuclear war. While the issue of nuclear war has been somewhat forgotten in today\u2019s culture, the threat is still a very real one. The&#8230;<\/p>\n","protected":false},"author":1,"featured_media":59,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":6,"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/posts\/56\/revisions\/82"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/media\/59"}],"wp:attachment":[{"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programs.lucas-elliott.com\/index.php\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}