{"id":718,"date":"2015-12-14T23:43:20","date_gmt":"2015-12-14T23:43:20","guid":{"rendered":"https:\/\/hhardsoft.wordpress.com\/?p=718"},"modified":"2015-12-14T23:43:20","modified_gmt":"2015-12-14T23:43:20","slug":"script-en-batch-para-reconocimiento-de-clases-de-ip","status":"publish","type":"post","link":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/","title":{"rendered":"Script en batch para reconocimiento de clases de IP."},"content":{"rendered":"<p>Hola a todos hoy os traigo el c\u00f3digo de un script para reconocer la clase de una ip, aqu\u00ed os adjunto el c\u00f3digo:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png?ssl=1\" rel=\"attachment wp-att-719\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" data-attachment-id=\"719\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/screenshot_2-9\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png?fit=983%2C496&amp;ssl=1\" data-orig-size=\"983,496\" data-comments-opened=\"1\" data-image-title=\"Screenshot_2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png?fit=800%2C404&amp;ssl=1\" class=\"aligncenter size-full wp-image-719\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png?resize=676%2C341&#038;ssl=1\" alt=\"Screenshot_2\" width=\"676\" height=\"341\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png?w=983&amp;ssl=1 983w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png?resize=300%2C151&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png?resize=768%2C388&amp;ssl=1 768w\" sizes=\"(max-width: 676px) 100vw, 676px\" \/><\/a><!--more--> Tambi\u00e9n os adjunto el video, con el funcionamiento del script:<\/p>\n<p><a href=\"https:\/\/youtu.be\/zGLK4SdLhhg\" target=\"_blank\">Video con el funcionamiento del script.<\/a><\/p>\n<p><em>Script en batch para reconocimiento de clases de IP:<\/em><\/p>\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe class=\"youtube-player\" title=\"YouTube video player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/zGLK4SdLhhg?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=es-ES&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<blockquote><p>@echo off<br \/>\n:menu<br \/>\ncls<br \/>\necho _________\u00a0\u00a0\u00a0\u00a0\u00a0 ______\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 _______________<br \/>\necho __\u00a0 ____\/_____ ___\u00a0 \/_________\u00a0 __\u00a0\u00a0\u00a0 ____\u00a0 _\/__\u00a0 __<br \/>\necho _\u00a0 \/\u00a0\u00a0\u00a0 _\u00a0 __ `\/_\u00a0 \/_\u00a0 ___\/\u00a0 \/ \/ \/\u00a0\u00a0\u00a0\u00a0 __\u00a0 \/ __\u00a0 \/_\/ \/<br \/>\necho \/ \/___\u00a0 \/ \/_\/ \/_\u00a0 \/ \/ \/__ \/ \/_\/ \/\u00a0\u00a0\u00a0\u00a0 __\/ \/\u00a0 _\u00a0 ____\/<br \/>\necho ____\/\u00a0 __,_\/ \/_\/\u00a0 ___\/ __,_\/\u00a0\u00a0\u00a0\u00a0\u00a0 \/___\/\u00a0 \/_\/<br \/>\necho \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0David De Maya Merras<br \/>\necho.<br \/>\necho.<br \/>\necho.<\/p>\n<p>echo 1. CALCULADORA DE IP&#8217;s.<br \/>\necho 2. SALIR.<\/p>\n<p>choice \/m:&#8221;Elige que opcion quieres&#8221; \/c:12 \/n \/t:120 \/d:2<\/p>\n<p>if errorlevel 2 goto fin<br \/>\nif errorlevel 1 goto inicio1<\/p>\n<p>:inicio1<br \/>\ncls<\/p>\n<p>set \/p a=echo Introduce el primer Byte:<\/p>\n<p>if &#8220;%a%&#8221;==&#8221;&#8221; echo No has introducido el numero, vuelve a intentarlo &amp; goto fin<br \/>\nif %a% GTR 255 goto mal1<br \/>\nif %a% LSS 0 goto mal1<br \/>\nif %a% == 127 goto mal1.1<br \/>\nif %a% == 0 goto mal1.2<\/p>\n<p>:inicio2<\/p>\n<p>set \/p b=echo Introduce el segundo Byte:<\/p>\n<p>if &#8220;%b%&#8221;==&#8221;&#8221; echo No has introducido el numero, vuelve a intentarlo &amp; goto fin<br \/>\nif %b% GTR 255 goto mal2<br \/>\nif %b% LSS 0 goto mal2<\/p>\n<p>:inicio3<\/p>\n<p>set \/p c=echo Introduce el tercer Byte:<\/p>\n<p>if &#8220;%c%&#8221;==&#8221;&#8221; echo No has introducido el numero, vuelve a intentarlo &amp; goto fin<br \/>\nif %c% GTR 255 goto mal3<br \/>\nif %c% LSS 0 goto mal3<\/p>\n<p>:inicio4<\/p>\n<p>set \/p d=echo Introduce el cuarto Byte:<\/p>\n<p>if &#8220;%d%&#8221;==&#8221;&#8221; echo no has introducido el numero, vuelve a intentarlo &amp; goto fin<br \/>\nif %d% GTR 255 goto mal4<br \/>\nif %d% LSS 0 goto mal4<br \/>\nif %d% == 0 goto mal4.1<br \/>\nif %d% == 255 goto mal4.2<\/p>\n<p>if %a% LEQ 126 goto clasea<br \/>\nif %a% LEQ 191 goto claseb<br \/>\nif %a% LEQ 223 goto clasec<br \/>\nif %a% LEQ 239 goto clased<br \/>\nif %a% LEQ 255 goto clasee<\/p>\n<p>echo %a%.%b%.%c%.%d% &amp; goto fin<\/p>\n<p>:clasea<br \/>\necho La ip %a%.%b%.%c%.%d% es de clase A &amp; pause &amp; goto menu<\/p>\n<p>:claseb<br \/>\necho La ip %a%.%b%.%c%.%d% es de clase B &amp; pause &amp; goto menu<\/p>\n<p>:clasec<br \/>\necho La ip %a%.%b%.%c%.%d% es de clase C &amp; pause &amp; goto menu<\/p>\n<p>:clased<br \/>\necho La ip %a%.%b%.%c%.%d% es de clase D, son direcciones de multidifusion. &amp; pause &amp; goto menu<\/p>\n<p>:clasee<br \/>\necho La ip %a%.%b%.%c%.%d% es de clase E, son utilizadas para uso experimental. &amp; pause &amp; goto menu<\/p>\n<p>:mal1<br \/>\necho ERROR! Introduce un numero entre 1 y 255. &amp; goto inicio1<\/p>\n<p>:mal1.1<br \/>\necho Las IP que empiezan por %a% son de retroalimentacion &amp; pause &amp; goto menu<\/p>\n<p>:mal1.2<br \/>\necho Este tipo de direccion es de arranque &amp; pause &amp; goto menu<\/p>\n<p>:mal2<br \/>\necho ERROR! Introduce un numero entre 1 y 254. &amp; goto inicio2<\/p>\n<p>:mal3<br \/>\necho ERROR! Introduce un numero entre 1 y 254. &amp; goto inicio3<\/p>\n<p>:mal4<br \/>\necho ERROR! Introduce un numero entre 1 y 254. &amp; goto inicio4<\/p>\n<p>:mal4.1<br \/>\necho %a%.%b%.%c%.%d% Este tipo de direccion sirven para identificar la red &amp; pause &amp; goto menu<\/p>\n<p>:mal4.2<br \/>\necho %a%.%b%.%c%.%d% Este tipo de direccion es de Broadcast &amp; pause &amp; goto menu<\/p>\n<p>:fin<\/p><\/blockquote>\n<p>Gracias por leer el blog. Saludos, @DavidDeMaya.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hola a todos hoy os traigo el c\u00f3digo de un script para reconocer la clase de una ip, aqu\u00ed os adjunto el c\u00f3digo:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3,5],"tags":[31,37,46,57],"class_list":["post-718","post","type-post","status-publish","format-standard","hentry","category-guias","category-informacion","tag-ipv4","tag-modelos","tag-redes","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Script en batch para reconocimiento de clases de IP. - Hardsoft Security<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Script en batch para reconocimiento de clases de IP. - Hardsoft Security\" \/>\n<meta property=\"og:description\" content=\"Hola a todos hoy os traigo el c\u00f3digo de un script para reconocer la clase de una ip, aqu\u00ed os adjunto el c\u00f3digo:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/\" \/>\n<meta property=\"og:site_name\" content=\"Hardsoft Security\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/HardSoftDavid\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-14T23:43:20+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png\" \/>\n<meta name=\"author\" content=\"david\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DavidDeMaya\" \/>\n<meta name=\"twitter:site\" content=\"@DavidDeMaya\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"david\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/\"},\"author\":{\"name\":\"david\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#\\\/schema\\\/person\\\/dfe289b1e4ae2daf72695e85a8b3dd7a\"},\"headline\":\"Script en batch para reconocimiento de clases de IP.\",\"datePublished\":\"2015-12-14T23:43:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/\"},\"wordCount\":511,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2015\\\/12\\\/screenshot_2.png\",\"keywords\":[\"ipv4\",\"modelos\",\"redes\",\"windows\"],\"articleSection\":[\"Gu\u00edas\",\"Informaci\u00f3n\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/\",\"url\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/\",\"name\":\"Script en batch para reconocimiento de clases de IP. - Hardsoft Security\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2015\\\/12\\\/screenshot_2.png\",\"datePublished\":\"2015-12-14T23:43:20+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#\\\/schema\\\/person\\\/dfe289b1e4ae2daf72695e85a8b3dd7a\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/#primaryimage\",\"url\":\"http:\\\/\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2015\\\/12\\\/screenshot_2.png\",\"contentUrl\":\"http:\\\/\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2015\\\/12\\\/screenshot_2.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2015\\\/12\\\/14\\\/script-en-batch-para-reconocimiento-de-clases-de-ip\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/hardsoftsecurity.es\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Script en batch para reconocimiento de clases de IP.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#website\",\"url\":\"https:\\\/\\\/hardsoftsecurity.es\\\/\",\"name\":\"Hardsoft Security\",\"description\":\"Chasing (In)Security\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hardsoftsecurity.es\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#\\\/schema\\\/person\\\/dfe289b1e4ae2daf72695e85a8b3dd7a\",\"name\":\"david\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g\",\"caption\":\"david\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Script en batch para reconocimiento de clases de IP. - Hardsoft Security","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/","og_locale":"es_ES","og_type":"article","og_title":"Script en batch para reconocimiento de clases de IP. - Hardsoft Security","og_description":"Hola a todos hoy os traigo el c\u00f3digo de un script para reconocer la clase de una ip, aqu\u00ed os adjunto el c\u00f3digo:","og_url":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/","og_site_name":"Hardsoft Security","article_publisher":"https:\/\/www.facebook.com\/HardSoftDavid","article_published_time":"2015-12-14T23:43:20+00:00","og_image":[{"url":"http:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png","type":"","width":"","height":""}],"author":"david","twitter_card":"summary_large_image","twitter_creator":"@DavidDeMaya","twitter_site":"@DavidDeMaya","twitter_misc":{"Escrito por":"david","Tiempo de lectura":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/#article","isPartOf":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/"},"author":{"name":"david","@id":"https:\/\/hardsoftsecurity.es\/#\/schema\/person\/dfe289b1e4ae2daf72695e85a8b3dd7a"},"headline":"Script en batch para reconocimiento de clases de IP.","datePublished":"2015-12-14T23:43:20+00:00","mainEntityOfPage":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/"},"wordCount":511,"commentCount":0,"image":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/#primaryimage"},"thumbnailUrl":"http:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png","keywords":["ipv4","modelos","redes","windows"],"articleSection":["Gu\u00edas","Informaci\u00f3n"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/","url":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/","name":"Script en batch para reconocimiento de clases de IP. - Hardsoft Security","isPartOf":{"@id":"https:\/\/hardsoftsecurity.es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/#primaryimage"},"image":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/#primaryimage"},"thumbnailUrl":"http:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png","datePublished":"2015-12-14T23:43:20+00:00","author":{"@id":"https:\/\/hardsoftsecurity.es\/#\/schema\/person\/dfe289b1e4ae2daf72695e85a8b3dd7a"},"breadcrumb":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/#primaryimage","url":"http:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png","contentUrl":"http:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/12\/screenshot_2.png"},{"@type":"BreadcrumbList","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/12\/14\/script-en-batch-para-reconocimiento-de-clases-de-ip\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/hardsoftsecurity.es\/"},{"@type":"ListItem","position":2,"name":"Script en batch para reconocimiento de clases de IP."}]},{"@type":"WebSite","@id":"https:\/\/hardsoftsecurity.es\/#website","url":"https:\/\/hardsoftsecurity.es\/","name":"Hardsoft Security","description":"Chasing (In)Security","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hardsoftsecurity.es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/hardsoftsecurity.es\/#\/schema\/person\/dfe289b1e4ae2daf72695e85a8b3dd7a","name":"david","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g","caption":"david"}}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7xGFx-bA","jetpack-related-posts":[{"id":938,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2016\/05\/17\/script-en-shell-script-para-hacer-copias-de-seguridad-linux\/","url_meta":{"origin":718,"position":0},"title":"Script en shell script, para hacer copias de seguridad. Linux.","author":"david","date":"mayo 17, 2016","format":false,"excerpt":"Hola muy buenas tardes a todos, hoy vengo a presentaros un script creado con el lenguaje shell script, el script consiste en listar los usuarios que tenemos en el directorio \"\/home\", una vez introducido el usuario, crear\u00e1 un .tar en una carpeta en \"\/home\/copiaseg\" con el nombre del usuario y\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/09\/cropped-unix.jpg?fit=1000%2C287&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/09\/cropped-unix.jpg?fit=1000%2C287&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/09\/cropped-unix.jpg?fit=1000%2C287&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/09\/cropped-unix.jpg?fit=1000%2C287&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1033,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2016\/09\/17\/scripts-en-batch-msdos\/","url_meta":{"origin":718,"position":1},"title":"Scripts en batch. MSDOS.","author":"david","date":"septiembre 17, 2016","format":false,"excerpt":"Hola hoy os traigo un par de scripts en batch. Espero que os sean \u00fatiles. Gracias. 1.- Compruebe si existe un fichero emitiendo un mensaje si existe.\u00a0 (If Exist) @echo off rem ************************************************************************ rem EJERCICIO 1 COMPRUEBA SI EXISTE UN FICHERO EMIIENO UN MENSAJE SI EXISTE. rem DAVID DE MAYA\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/09\/Windows-8.1.jpg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/09\/Windows-8.1.jpg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/09\/Windows-8.1.jpg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/09\/Windows-8.1.jpg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/09\/Windows-8.1.jpg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3706,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2024\/09\/27\/mssql-python-shell\/","url_meta":{"origin":718,"position":2},"title":"MSSQL Python Shell","author":"david","date":"septiembre 27, 2024","format":false,"excerpt":"This post presents an enhanced Python script for interacting with Microsoft SQL Server using the\u00a0pymssql\u00a0library. This improved script is based on the original\u00a0MSSQL\u00a0Shell\u00a0Script\u00a0by Alamot. My modified version introduces the use of the more modern and maintained\u00a0pymssql\u00a0library and added functionality for file uploads, ensuring that commands and file transfers are handled\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2024\/09\/image-1.png?fit=800%2C418&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2024\/09\/image-1.png?fit=800%2C418&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2024\/09\/image-1.png?fit=800%2C418&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2024\/09\/image-1.png?fit=800%2C418&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3722,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2024\/11\/09\/sebackupprivilege-exploitation\/","url_meta":{"origin":718,"position":3},"title":"SeBackupPrivilege &#8211; Exploitation","author":"david","date":"noviembre 9, 2024","format":false,"excerpt":"Welcome to this post where we will see how to exploit the token \"SeBackupPrivilege\". We will see how to exploit it manually inside the compromised machine and the second method will be remotely from our attacker machine. First of all, I will to an introduction to tokens in windows: Each\u2026","rel":"","context":"En \u00abInformaci\u00f3n\u00bb","block_context":{"text":"Informaci\u00f3n","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/informacion\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2024\/11\/image.png?fit=728%2C380&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2024\/11\/image.png?fit=728%2C380&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2024\/11\/image.png?fit=728%2C380&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2024\/11\/image.png?fit=728%2C380&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1057,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2016\/10\/12\/automatizar-copias-de-seguridad-con-crontab\/","url_meta":{"origin":718,"position":4},"title":"Automatizar Copias De Seguridad Con Crontab.","author":"david","date":"octubre 12, 2016","format":false,"excerpt":"En este peque\u00f1o manual, lo que explicar\u00e9 ser\u00e1 como automatizar una serie de copias de seguridad completas e incrementales, con ayuda de dos grandes herramientas de los sistemas operativos basados en LINUX, llamados CRONTAB y SHELLSCRIPT. Descripci\u00f3n del script: Una breve explicaci\u00f3n del script realizado ser\u00eda la siguiente, el script\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/10\/backup-three-laptops-plugged-into-word.jpg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/10\/backup-three-laptops-plugged-into-word.jpg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/10\/backup-three-laptops-plugged-into-word.jpg?fit=1200%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/10\/backup-three-laptops-plugged-into-word.jpg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/10\/backup-three-laptops-plugged-into-word.jpg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":746,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2016\/02\/09\/generador-de-contrasenas-seguras-con-python\/","url_meta":{"origin":718,"position":5},"title":"Generador De Contrase\u00f1as Seguras Con Python","author":"david","date":"febrero 9, 2016","format":false,"excerpt":"Esta vez os traigo un generador de contrase\u00f1as seguras de 10 d\u00edgitos, es un script basado en python. Aqu\u00ed muestro el funcionamiento del script, al final del post dejare el c\u00f3digo para el que lo quiera modificar. 1.- Paso: Le damos permisos al archivo que contenga nuestro c\u00f3digo. 2.- Paso:\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"python-logo-master-v3-TM","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/02\/python-logo-master-v3-tm.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/02\/python-logo-master-v3-tm.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2016\/02\/python-logo-master-v3-tm.png?resize=525%2C300 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts\/718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/comments?post=718"}],"version-history":[{"count":0,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts\/718\/revisions"}],"wp:attachment":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/media?parent=718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/categories?post=718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/tags?post=718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}