[
https://issues.apache.org/jira/browse/METRON-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16306505#comment-16306505
]
ASF GitHub Bot commented on METRON-1377:
----------------------------------------
Github user mmiklavc commented on a diff in the pull request:
https://github.com/apache/metron/pull/878#discussion_r159098038
--- Diff:
metron-platform/metron-common/src/main/java/org/apache/metron/common/typosquat/Keyboards.java
---
@@ -0,0 +1,147 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.metron.common.typosquat;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public enum Keyboards {
--- End diff --
This looks like a mapping of common typing mistakes based on keys
surrounding the letter that's the hashmap key. Can we add some docs to that
effect?
> Stellar function to generate typosquatted domains (similar to dnstwist)
> -----------------------------------------------------------------------
>
> Key: METRON-1377
> URL: https://issues.apache.org/jira/browse/METRON-1377
> Project: Metron
> Issue Type: Improvement
> Reporter: Casey Stella
>
> As a component of a strategy to detect Typosquatting (see
> https://en.wikipedia.org/wiki/Typosquatting), generating typosquatted domains
> is necessary. As such, a stellar function which replicates the functionality
> of dnstwist would be of use.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)