Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
enty8080 authored Nov 24, 2024
1 parent 0cd3045 commit 9a637a8
Show file tree
Hide file tree
Showing 12 changed files with 91 additions and 11 deletions.
11 changes: 6 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ description: >- # used by seo meta and the atom feed
# Fill in the protocol & hostname for your site.
# E.g. 'https://username.github.io', note that it does not end with a '/'.
url: ""
url: "https://blog.entysec.com"

github:
username: entysec # change to your GitHub username
Expand All @@ -42,7 +42,7 @@ social:
- https://github.com/entysec # change to your GitHub homepage
# Uncomment below to add more social links
# - https://www.facebook.com/username
# - https://www.linkedin.com/in/username
- https://www.linkedin.com/in/ivan-nikolskiy-42a918293

# Site Verification Settings
webmaster_verifications:
Expand Down Expand Up @@ -159,7 +159,8 @@ kramdown:
syntax_highlighter: rouge
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
css_class: highlight
# default_lang: console
default_lang: entysec
line_numbers: false
span:
line_numbers: false
block:
Expand All @@ -177,7 +178,7 @@ defaults:
type: posts
values:
layout: post
comments: true # Enable comments in posts.
comments: false # Enable comments in posts.
toc: true # Display TOC column in posts.
# DO NOT modify the following parameter unless you are confident enough
# to update the code of all other post links in this project.
Expand All @@ -200,7 +201,7 @@ compress_html:
clippings: all
comments: all
endings: all
profile: false
profile: true
blanklines: false
ignore:
envs: [development]
Expand Down
67 changes: 67 additions & 0 deletions _includes/language-alias.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{% comment %}
Convert the alias of the syntax language to the official name
See: <https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers>
{% endcomment %}

{% assign _lang = include.language | default: '' %}

{% case _lang %}
{% when 'entysec' %}
{{ 'Terminal' }}
{% when 'applescript' %}
{{ 'AppleScript' }}
{% when 'brightscript', 'bs', 'brs' %}
{{ 'BrightScript' }}
{% when 'cfscript', 'cfc' %}
{{ 'CFScript' }}
{% when 'coffeescript', 'coffee', 'coffee-script' %}
{{ 'CoffeeScript' }}
{% when 'cs', 'csharp' %}
{{ 'C#' }}
{% when 'erl' %}
{{ 'Erlang' }}
{% when 'graphql' %}
{{ 'GraphQL' }}
{% when 'haskell', 'hs' %}
{{ 'Haskell' }}
{% when 'javascript', 'js' %}
{{ 'JavaScript' }}
{% when 'make', 'mf', 'gnumake', 'bsdmake' %}
{{ 'Makefile' }}
{% when 'md', 'mkd' %}
{{ 'Markdown' }}
{% when 'm' %}
{{ 'Matlab' }}
{% when 'objective_c', 'objc', 'obj-c', 'obj_c', 'objectivec' %}
{{ 'Objective-C' }}
{% when 'perl', 'pl' %}
{{ 'Perl' }}
{% when 'php','php3','php4','php5' %}
{{ 'PHP' }}
{% when 'py' %}
{{ 'Python' }}
{% when 'rb' %}
{{ 'Ruby' }}
{% when 'rs','no_run','ignore','should_panic' %}
{{ 'Rust' }}
{% when 'bash', 'zsh', 'ksh', 'sh' %}
{{ 'Shell' }}
{% when 'st', 'squeak' %}
{{ 'Smalltalk' }}
{% when 'tex'%}
{{ 'TeX' }}
{% when 'latex' %}
{{ 'LaTex' }}
{% when 'ts', 'typescript' %}
{{ 'TypeScript' }}
{% when 'vb', 'visualbasic' %}
{{ 'Visual Basic' }}
{% when 'vue', 'vuejs' %}
{{ 'Vue.js' }}
{% when 'yml' %}
{{ 'YAML' }}
{% when 'css', 'html', 'scss', 'ssh', 'toml', 'xml', 'yaml', 'json' %}
{{ _lang | upcase }}
{% else %}
{{ _lang | capitalize }}
{% endcase %}
4 changes: 2 additions & 2 deletions _plugins/entysec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.token(name, shortname, &b)

module Lexers
class EntySecConsoleLanguage < Rouge::RegexLexer
title 'entysec'
title 'EntySec Console'
tag 'entysec'
desc 'EntySec Console Highlighter'
filenames []
Expand Down Expand Up @@ -79,4 +79,4 @@ def self.keywords
end
end
end
end
end
2 changes: 1 addition & 1 deletion _posts/2021-07-28-denver-backdoors.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Backdoor was found in a Denver SHC-150 Smart Wifi Camera by Ivan Nikolsky, secur
So, the telnet service, as Ivan noticed, has hardcoded credentials and after brute-forcing them he found out that the only thing which is needed to login is username - `default`.

```shell
```console
enty8080@Ivans-Air ~ % telnet 192.168.2.118 23
Trying 192.168.2.118...
Connected to pc192-168-2-118.
Expand Down
Binary file added assets/img/favicons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/favicons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/favicons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/favicons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/favicons/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions assets/img/favicons/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
17 changes: 14 additions & 3 deletions assets/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
.language-mermaid .label {
text-transform: inherit;
div {
&.nolineno,
&.language-cisco_ios,
&.language-entysec {
td:first-child {
padding: 0 !important;
margin-right: 0;

.lineno {
display: none;
}
}
}
}

.language-entysec .zp {
Expand All @@ -24,4 +35,4 @@

.language-entysec .zw {
color: orange;
}
}

0 comments on commit 9a637a8

Please sign in to comment.